### Question:
DMNPaletteDefinitionBuilder implements PaletteDefinitionBuilder<AbstractCanvasHandler, DefaultPaletteDefinition> { AbstractPaletteDefinitionBuilder getPaletteDefinitionBuilder() { return paletteDefinitionBuilder; } protected  DMNPaletteDefinitionBuilder(); @Inject  DMNPaletteDefinitionBuilder(final CollapsedPaletteDefinitionBuilder paletteDefinitionBuilder); @PostConstruct void init(); @Override void build(final AbstractCanvasHandler canvasHandler,
                      final Consumer<DefaultPaletteDefinition> paletteDefinitionConsumer);  }### Answer:
@Test @SuppressWarnings("unchecked") public void testFilters() { assertTrue(tested.getPaletteDefinitionBuilder().getCategoryFilter().test(Categories.NODES)); assertFalse(tested.getPaletteDefinitionBuilder().getCategoryFilter().test(Categories.DIAGRAM)); assertFalse(tested.getPaletteDefinitionBuilder().getCategoryFilter().test(Categories.CONNECTORS)); assertFalse(tested.getPaletteDefinitionBuilder().getCategoryFilter().test(Categories.MISCELLANEOUS)); assertFalse(tested.getPaletteDefinitionBuilder().getCategoryFilter().test(Categories.DOMAIN_OBJECTS)); }