### Question:
TilesetPresenter extends MvpPresenter<TilesetUi> { public void automapChanged(boolean checked) { automapSubject.onNext(checked); } 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 testAutomapChanged() { TestObserver<Boolean> test = presenter.getAutomapSubject().test(); presenter.automapChanged(true); presenter.automapChanged(false); test.assertValues(true, false); }