@Test
public void testComponentsCanNotHaveReports() throws Exception {

    Collection<AttachmentType> types = SW360Constants.allowedAttachmentTypes(SW360Constants.TYPE_COMPONENT);
    for (AttachmentType attachmentType : AttachmentType.values()) {
        if (attachmentType == AttachmentType.CLEARING_REPORT) {
            assertThat(types, not(hasItem(equalTo(attachmentType))));
        } else {
            assertThat(types, hasItem(equalTo(attachmentType)));
        }
    }
}