* Test method for {@link com.impetus.kundera.property.PropertyAccessorHelper#set(java.lang.Object, java.lang.reflect.Field, byte[])}.
*/
@Test
public void testSetObjectFieldByteArray()
{
PersonnelDTO person = new PersonnelDTO();
try
{
PropertyAccessorHelper.set(person, person.getClass().getDeclaredField("personId"), "1".getBytes());
PropertyAccessorHelper.set(person, person.getClass().getDeclaredField("firstName"), "Amresh".getBytes());
PropertyAccessorHelper.set(person, person.getClass().getDeclaredField("lastName"), "Singh".getBytes());
Assert.assertEquals("1", person.getPersonId());
Assert.assertEquals("Amresh", person.getFirstName());
Assert.assertEquals("Singh", person.getLastName());
}
catch (SecurityException e)
{
Assert.fail(e.getMessage());
}