@Test
public void test_update_parameter_exists() throws Exception{

    when(dataObjectService.find(Matchers.argThat(new ClassOrSubclassMatcher<ParameterBo>(
            ParameterBo.class)), any(QueryByCriteria.class))).thenReturn(bo);
    when(dataObjectService.save(any(ParameterBo.class))).thenReturn(bo);
    Parameter param = getParameterRepositoryService().updateParameter(parameter);
    assertTrue("Parameter retrieved after update", param != null);
    verify(dataObjectService, times(1)).find(Matchers.argThat(new ClassOrSubclassMatcher<ParameterBo>(
            ParameterBo.class)), any(QueryByCriteria.class));
    verify(dataObjectService, times(1)).save(any(ParameterBo.class));
}