@Test
public void testGetPrincipalNames() throws Exception {

  List<String> names = new LinkedList<String>();
  names.add("joe");
  names.add("fred");
  LdapSyncSpecEntity entity = new LdapSyncSpecEntity(LdapSyncSpecEntity.PrincipalType.USERS,
      LdapSyncSpecEntity.SyncType.SPECIFIC, names);
  Assert.assertEquals(names, entity.getPrincipalNames());
}