@Test
public void shouldCombineSynteticObjects() throws Exception {

  Person captain = new Person("Jim", null, null);
  Person member1 = new Person("Joe", null, null);
  Team team1 = new Team("A", captain, null);
  List<Person> members = new ArrayList<>();
  members.add(member1);
  Team team2 = new Team("A", null, members);
  Team combined = Beans.combine(team1, team2);
  assertNotNull(combined);
  assertEquals("A", combined.getName());
  assertEquals(captain, combined.getCaptain());
  assertNotNull(combined.getMembers());
  assertEquals(member1, combined.getMembers().get(0));
}