public void testUpdate()
{
System.out.println("update");
assertTrue(instance.isOpen());
Long resultId = new Long(2L);
Category category = instance.find(resultId);
assertEquals("Loop", category.getName());
category.setName("Loop and Array");
Category result = instance.update(category);
assertNotNull(result);
assertEquals(category, result);
assertEquals(resultId, result.getId());
assertEquals("Loop and Array", result.getName());
}