### Question:
TilesetPresenter extends MvpPresenter<TilesetUi> { public void levelLoaded() { Collection<Tileset> tilesets = manager.getTilesets(); for (Tileset tileset : tilesets) { 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 testLevelLoaded() { List<Tileset> tilesets = new ArrayList<>(); ImageTileset imageTileset = mock(ImageTileset.class); PaletteTileset paletteTileset = mock(PaletteTileset.class); tilesets.add(imageTileset); tilesets.add(paletteTileset); when(manager.getTilesets()).thenReturn(tilesets); presenter.levelLoaded(); verify(view).createTab(eq(imageTileset)); verify(view).createPicker(eq(imageTileset), eq(16), eq(16)); verify(view).createTab(eq(paletteTileset)); verify(view).createPicker(eq(paletteTileset), eq(1), eq(1)); }