LoadingBox { public void hide() { view.close(); } LoadingBox(); @Inject  LoadingBox(View view); void show(); void hide();  }
@Test public void testHide() throws Exception { presenter.hide(); verify(view, times(1)).close(); }