### Question:
TilesetPresenter extends MvpPresenter<TilesetUi> { public void createPalette() { view.promptPaletteName(); } TilesetPresenter(TilesetPlugin plugin, TilesetManager manager); void loadTileset(FileHandle file); void createPalette(); void createPalette(String name); void selectTileset(Tileset tileset); void tileWidthChanged(int width); void tileHeightChanged(int height); void automapChanged(boolean checked); void selectRegion(TextureRegion region); PublishSubject<Boolean> getAutomapSubject(); PublishSubject<TextureRegion> getRegionSubject(); void levelLoaded(); TextureRegion getCurrentRegion();  }### Answer:
@Test public void testCreatePalette() { PaletteTileset tileset = mock(PaletteTileset.class); when(manager.createPalette(anyString())).thenReturn(tileset); presenter.createPalette(); verify(view).promptPaletteName(); presenter.createPalette("Test"); verify(manager).createPalette(eq("Test")); verify(view).createTab(eq(tileset)); verify(view).createPicker(eq(tileset), eq(1), eq(1)); }