@Test public void testUpdateIndicatorType() throws Exception { IndicatorType typeA = new IndicatorType("IndicatorTypeA", 100, false); int idA = indicatorTypeStore.save(typeA); typeA = indicatorTypeStore.get(idA); assertEquals(typeA.getName(), "IndicatorTypeA"); typeA.setName("IndicatorTypeB"); indicatorTypeStore.update(typeA); typeA = indicatorTypeStore.get(idA); assertNotNull(typeA); assertEquals(typeA.getName(), "IndicatorTypeB"); }