### Question:
DMNDocumentationViewButtonsVisibilitySupplier extends org.kie.workbench.common.dmn.client.editors.documentation.DMNDocumentationViewButtonsVisibilitySupplier { @Override public boolean isButtonsVisible() { return !Objects.equals(contextProvider.getChannel(), VSCODE); } @Inject  DMNDocumentationViewButtonsVisibilitySupplier(final EditorContextProvider contextProvider); @Override boolean isButtonsVisible();  }### Answer:
@Test public void testIsButtonsVisibleWhenIsVSCode() { when(contextProvider.getChannel()).thenReturn(VSCODE); final boolean isButtonsVisible = supplier.isButtonsVisible(); assertFalse(isButtonsVisible); }
@Test public void testIsButtonsVisibleWhenIsNotVSCode() { final Channel channel = mock(Channel.class); when(contextProvider.getChannel()).thenReturn(channel); final boolean isButtonsVisible = supplier.isButtonsVisible(); assertTrue(isButtonsVisible); }