@Test
public void approveArtifact(){

    final DbArtifact doNotUseArtifact = new DbArtifact();
    doNotUseArtifact.setDoNotUse(true);
    final DbArtifact artifactThatCanBeUsed = new DbArtifact();
    artifactThatCanBeUsed.setDoNotUse(false);
    DoNotUseFilter filter = new DoNotUseFilter(true);
    assertTrue(filter.filter(doNotUseArtifact));
    assertFalse(filter.filter(artifactThatCanBeUsed));
    filter = new DoNotUseFilter(false);
    assertFalse(filter.filter(doNotUseArtifact));
    assertTrue(filter.filter(artifactThatCanBeUsed));
}