### Question:
DecisionNavigatorDock implements DiagramEditorDock { @Override public void init(final String perspective) { this.perspective = perspective; this.uberfireDock = makeUberfireDock(); } DecisionNavigatorDock(); @Inject  DecisionNavigatorDock(final UberfireDocks uberfireDocks,
                                 final DecisionNavigatorPresenter decisionNavigatorPresenter,
                                 final TranslationService translationService); @Override void init(final String perspective); @Override void destroy(); void reload(); void resetContent(); @Override void open(); @Override void close();  }### Answer:
@Test public void testInit() { final String expectedPerspective = "perspective"; final UberfireDock expectedUberfireDock = mock(UberfireDock.class); doReturn(expectedUberfireDock).when(dock).makeUberfireDock(); dock.init(expectedPerspective); final String actualPerspective = dock.perspective(); final UberfireDock actualUberfireDock = dock.getUberfireDock(); assertEquals(expectedPerspective, actualPerspective); assertEquals(expectedUberfireDock, actualUberfireDock); }