@Test
public void promotedModule(){

    final DbModule promotedModule = new DbModule();
    promotedModule.setPromoted(true);
    final DbModule notPromotedModule = new DbModule();
    notPromotedModule.setPromoted(false);
    PromotedFilter filter = new PromotedFilter(true);
    assertTrue(filter.filter(promotedModule));
    assertFalse(filter.filter(notPromotedModule));
    filter = new PromotedFilter(false);
    assertFalse(filter.filter(promotedModule));
    assertTrue(filter.filter(notPromotedModule));
}