assertEquals(bar.b(), foo.b()); assertEquals(bar.c(), foo.c()); } @Test Pubic void test2() { …. assertEquals(bar.a(), foo.a()); assertEquals(bar.b(), foo.b()); assertEquals(bar.c(), foo.c()); } @Test Pubic void test1() { …. assertEquals(bar.a(), foo.a()); assertEquals(bar.b(), foo.b()); assertEquals(bar.c(), foo.c()); } static void assertHoge(fuga exp, fuga act) { assertEquals(exp.a(), act.a()); assertEquals(exp.b(), act.b()); assertEquals(exp.c(), act.c()); }