@Test
public void testGetPrincipalType() throws Exception {

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