@Test(expected = IllegalStateException.class)
public void test_create_parameter_exists() throws Exception{

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