import org.junit.Test; import static org.junit.Assert.*; public class TestAccount { @Test public void test1(){ // Arrange Person p = new Person("Hans","Georg", 12); // Act Account a = new Account(p, "fdfdf"); // Assert assertEquals("Georg", a.owner.vname); } @Test public void testM2(){ // Arrange Person p = new Person("Hans","Georg", 12); // Act Account a = new Account(p, "fdfdf"); // Assert assertEquals("Georg", a.owner.vname); } @Test public void test3(){ // Arrange Person p = new Person("Hans","Georg", 12); // Act Account a = new Account(p, "fdfdf"); // Assert assertEquals(12, a.owner.age); } }