### Question:
LdapSyncRequest { public LdapSyncSpecEntity.SyncType getType() { return type; } LdapSyncRequest(LdapSyncSpecEntity.SyncType type, Set<String> principalNames);  LdapSyncRequest(LdapSyncSpecEntity.SyncType type); void addPrincipalNames(Set<String> principalNames); Set<String> getPrincipalNames(); LdapSyncSpecEntity.SyncType getType();  }### Answer:
@Test public void testGetType() throws Exception { Set<String> names = new HashSet<>(); LdapSyncRequest request = new LdapSyncRequest(LdapSyncSpecEntity.SyncType.SPECIFIC, names); Assert.assertEquals(LdapSyncSpecEntity.SyncType.SPECIFIC, request.getType()); request = new LdapSyncRequest(LdapSyncSpecEntity.SyncType.ALL); Assert.assertEquals(LdapSyncSpecEntity.SyncType.ALL, request.getType()); request = new LdapSyncRequest(LdapSyncSpecEntity.SyncType.EXISTING); Assert.assertEquals(LdapSyncSpecEntity.SyncType.EXISTING, request.getType()); }