@Test
public void testGetSyncType() throws Exception {

  LdapSyncSpecEntity entity = new LdapSyncSpecEntity(LdapSyncSpecEntity.PrincipalType.USERS,
      LdapSyncSpecEntity.SyncType.ALL, Collections.<String>emptyList());
  Assert.assertEquals(LdapSyncSpecEntity.SyncType.ALL, entity.getSyncType());
  entity = new LdapSyncSpecEntity(LdapSyncSpecEntity.PrincipalType.USERS,
      LdapSyncSpecEntity.SyncType.EXISTING, Collections.<String>emptyList());
  Assert.assertEquals(LdapSyncSpecEntity.SyncType.EXISTING, entity.getSyncType());
}