@Test
@UseDataProvider("dataProviderAdd")
public void testGetLicenseInfo(String exampleFile, List<String> expectedLicenses, int numberOfCoyprights, String exampleCopyright) throws Exception {

    Attachment attachment = makeAttachment(exampleFile,
            Arrays.stream(AttachmentType.values())
                    .filter(SW360Constants.LICENSE_INFO_ATTACHMENT_TYPES::contains)
                    .findAny()
                    .get());
    LicenseInfoParsingResult result = parser.getLicenseInfos(attachment, dummyUser,
                                        new Project()
                                                .setVisbility(Visibility.ME_AND_MODERATORS)
                                                .setCreatedBy(dummyUser.getEmail())
                                                .setAttachments(Collections.singleton(new Attachment().setAttachmentContentId(attachment.getAttachmentContentId()))))
            .stream()
            .findFirst()
            .orElseThrow(()->new RuntimeException("Parser returned empty LisenceInfoParsingResult list"));
    assertLicenseInfoParsingResult(result);
    assertIsResultOfExample(result.getLicenseInfo(), exampleFile, expectedLicenses, numberOfCoyprights, exampleCopyright);
}