@Test
public void test_getComponentByCode_exists() throws Exception{

    when(dataObjectService.find(any(Class.class),anyObject())).thenReturn(componentBo);
    assertTrue("Component was returned", StringUtils.equals(component.getCode(),
            getComponentService().getComponentByCode(NAMESPACE_CODE, CODE).getCode()));
}