@Test
public void promotedArtifact(){

    final DbArtifact promotedArtifact = new DbArtifact();
    promotedArtifact.setPromoted(true);
    final DbArtifact notPromotedArtifact = new DbArtifact();
    notPromotedArtifact.setPromoted(false);
    PromotedFilter filter = new PromotedFilter(true);
    assertTrue(filter.filter(promotedArtifact));
    assertFalse(filter.filter(notPromotedArtifact));
    filter = new PromotedFilter(false);
    assertFalse(filter.filter(promotedArtifact));
    assertTrue(filter.filter(notPromotedArtifact));
}