@Test
public void test_get_sub_parameter_value_as_string_single_match() throws Exception{

    //adding whitespace
    bo.setValue("foo= f1; bar=b1; baz=z1");
    when(dataObjectService.find(Matchers.argThat(new ClassOrSubclassMatcher<ParameterBo>(
            ParameterBo.class)), any(QueryByCriteria.class))).thenReturn(bo);
    assertEquals("f1", getParameterRepositoryService().getSubParameterValueAsString(key, "foo"));
    verify(dataObjectService, times(1)).find(Matchers.argThat(new ClassOrSubclassMatcher<ParameterBo>(
            ParameterBo.class)), any(QueryByCriteria.class));
}