@Test
public void testCreateComponentFromArtifact() {

    SW360Component component = new SW360Component();
    if (expectedException != null) {
        thrownException.expect(expectedException);
        thrownException.expectMessage(expectedExceptionMsg);
    }
    ArtifactToComponentUtils.prepareComponent(component, artifact);
    assertThat(component.getName()).isEqualTo(expectedName);
    assertThat(component.getComponentType()).isEqualTo(expectedType);
}