@Test
public void test_create_parameter_does_not_exist() throws Exception{

    when(dataObjectService.find(Matchers.argThat(new ClassOrSubclassMatcher<ParameterBo>(
            ParameterBo.class)), any(QueryByCriteria.class))).thenReturn(null);
    when(dataObjectService.save(any(ParameterBo.class),any(PersistenceOption.FLUSH.getClass()))).thenReturn(bo);
    getParameterRepositoryService().createParameter(parameter);
    verify(dataObjectService, times(2)).find(Matchers.argThat(new ClassOrSubclassMatcher<ParameterBo>(
            ParameterBo.class)), any(QueryByCriteria.class));
    verify(dataObjectService, times(1)).save(any(ParameterBo.class), any(PersistenceOption.FLUSH.getClass()));
}