@Test
public void testValidateComponentNullCategories() {

    SW360Component component = new SW360Component();
    component.setName("component");
    try {
        SW360ComponentAdapterUtils.validateComponent(component);
        fail("Invalid component not detected");
    } catch (IllegalArgumentException e) {
        assertThat(e.getMessage()).contains("missing property 'categories'");
    }
}