### Question:
TilesetPresenter extends MvpPresenter<TilesetUi> { public void loadTileset(FileHandle file) { Tileset tileset = manager.load(file); view.createTab(tileset); boolean palette = tileset instanceof PaletteTileset; view.createPicker(tileset, palette ? 1 : tileWidth, palette ? 1 : tileHeight); } 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 testLoadTileset() { ImageTileset tileset = mock(ImageTileset.class); when(manager.load(any())).thenReturn(tileset); FileHandle fh = mock(FileHandle.class); presenter.loadTileset(fh); verify(manager).load(eq(fh)); verify(view).createTab(eq(tileset)); verify(view).createPicker(eq(tileset), eq(16), eq(16)); }