@Test
public void test_getComponentsByCode_not_exists() throws Exception{

    when(dataObjectService.find(any(Class.class),anyObject())).thenReturn(null);
    assertTrue("Component was returned",getComponentService().getComponentByCode("blah", "blah")==null);
}