### Question:
LdapSyncSpecEntity { public SyncType getSyncType() { return syncType; } LdapSyncSpecEntity(PrincipalType principalType, SyncType syncType, List<String> principalNames); PrincipalType getPrincipalType(); SyncType getSyncType(); List<String> getPrincipalNames();  }### Answer:
@Test public void testGetSyncType() throws Exception { LdapSyncSpecEntity entity = new LdapSyncSpecEntity(LdapSyncSpecEntity.PrincipalType.USERS, LdapSyncSpecEntity.SyncType.ALL, Collections.emptyList()); Assert.assertEquals(LdapSyncSpecEntity.SyncType.ALL, entity.getSyncType()); entity = new LdapSyncSpecEntity(LdapSyncSpecEntity.PrincipalType.USERS, LdapSyncSpecEntity.SyncType.EXISTING, Collections.emptyList()); Assert.assertEquals(LdapSyncSpecEntity.SyncType.EXISTING, entity.getSyncType()); }