@Test
public void testGetType() throws Exception {

  Set<String> names = new HashSet<String>();
  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());
}