### Question:
ReadOnlyProviderImpl implements ReadOnlyProvider { @Override public boolean isReadOnlyDiagram() { return contextProvider.isReadOnly(); } @Inject  ReadOnlyProviderImpl(final EditorContextProvider contextProvider); @Override boolean isReadOnlyDiagram();  }### Answer:
@Test public void testIsReadOnlyDiagramWhenIsGithub() { when(contextProvider.getChannel()).thenReturn(GITHUB); assertFalse(readOnlyProvider.isReadOnlyDiagram()); }
@Test public void testIsReadOnlyDiagramWhenIsDefault() { when(contextProvider.getChannel()).thenReturn(DEFAULT); assertFalse(readOnlyProvider.isReadOnlyDiagram()); }
@Test public void testIsReadOnlyDiagramWhenIsVsCode() { when(contextProvider.getChannel()).thenReturn(VSCODE); assertFalse(readOnlyProvider.isReadOnlyDiagram()); }
@Test public void testIsReadOnlyDiagramWhenIsOnline() { when(contextProvider.getChannel()).thenReturn(ONLINE); assertFalse(readOnlyProvider.isReadOnlyDiagram()); }
@Test public void testIsReadOnlyDiagramWhenIsDesktop() { when(contextProvider.getChannel()).thenReturn(DESKTOP); assertFalse(readOnlyProvider.isReadOnlyDiagram()); }
@Test public void testIsReadOnlyDiagramWhenIsEmbedded() { when(contextProvider.getChannel()).thenReturn(EMBEDDED); assertFalse(readOnlyProvider.isReadOnlyDiagram()); }