@Test
public void approveArtifact(){

    final DbLicense unvalidatedLicense = new DbLicense();
    unvalidatedLicense.setApproved(false);
    final DbLicense validatedLicense = new DbLicense();
    validatedLicense.setApproved(true);
    final DbLicense toBeValidatedLicense = new DbLicense();
    ToBeValidatedFilter filter = new ToBeValidatedFilter(true);
    assertTrue(filter.filter(toBeValidatedLicense));
    assertFalse(filter.filter(validatedLicense));
    assertFalse(filter.filter(unvalidatedLicense));
    filter = new ToBeValidatedFilter(false);
    assertFalse(filter.filter(toBeValidatedLicense));
    assertTrue(filter.filter(validatedLicense));
    assertTrue(filter.filter(unvalidatedLicense));
}