}
@Test
public void testRetrieveObjectValue() {
UserCriteria user = new UserCriteria();
UserCredential cred = new UserCredential();
user.setFirstName("Test");
user.setEmailAddress("admin@ideyatech.com");
cred.setUsername("testname");
cred.setPassword("password");
cred.setId(123l);
cred.setEnabled(true);
user.setCredential(cred);
Assert.assertEquals("Test", CrudUtil.retrieveObjectValue(user, "firstName"));
Assert.assertEquals("admin@ideyatech.com", CrudUtil.retrieveObjectValue(user, "emailAddress"));
Assert.assertEquals("testname", CrudUtil.retrieveObjectValue(user, "credential.username"));
// Assert.assertEquals("password", CrudUtil.retrieveObjectValue(user, "credential.password"));