@Test
public void approveArtifact(){

    final DbArtifact artifactWithLicense = new DbArtifact();
    final DbLicense license = new DbLicense();
    license.setName("licenseName");
    artifactWithLicense.addLicense(license);
    final DbArtifact artifactWithoutLicense = new DbArtifact();
    LicenseIdFilter filter = new LicenseIdFilter(license.getName());
    assertTrue(filter.filter(artifactWithLicense));
    assertFalse(filter.filter(artifactWithoutLicense));
}