### Question:
LdapSyncSpecEntity { public List<String> getPrincipalNames() { return principalNames; } LdapSyncSpecEntity(PrincipalType principalType, SyncType syncType, List<String> principalNames); PrincipalType getPrincipalType(); SyncType getSyncType(); List<String> getPrincipalNames();  }### Answer:
@Test public void testGetPrincipalNames() throws Exception { List<String> names = new LinkedList<>(); names.add("joe"); names.add("fred"); LdapSyncSpecEntity entity = new LdapSyncSpecEntity(LdapSyncSpecEntity.PrincipalType.USERS, LdapSyncSpecEntity.SyncType.SPECIFIC, names); Assert.assertEquals(names, entity.getPrincipalNames()); }