### Question:
DMNPaletteDefinitionBuilder implements PaletteDefinitionBuilder<AbstractCanvasHandler, DefaultPaletteDefinition> { @Override public void build(final AbstractCanvasHandler canvasHandler, final Consumer<DefaultPaletteDefinition> paletteDefinitionConsumer) { paletteDefinitionBuilder .build(canvasHandler, paletteDefinitionConsumer); } 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 testBuild() { Consumer<DefaultPaletteDefinition> paletteConsumer = mock(Consumer.class); tested.build(canvasHandler, paletteConsumer); verify(collapsedPaletteBuilder, times(1)).build(eq(canvasHandler), any(Consumer.class)); verify(paletteConsumer, times(1)).accept(eq(paletteDefinition)); }