AddGlobalPopup implements AddGlobalPopupView.Presenter { public String getClassName() { return view.getSelectedClassName(); } @Inject  AddGlobalPopup(final AddGlobalPopupView view); @PostConstruct void init(); String getAlias(); String getClassName(); void show(final Command addCommand,
                     final Command cancelCommand,
                     final List<String> fullyQualifiedClassNames); @Override void onAliasInputChanged(); @Override void onClassNameSelectChanged(); @Override void onAddButtonClicked(); @Override void onCancelButtonClicked();  }
@Test public void getClassName() { when( view.getSelectedClassName() ).thenReturn( "className" ); String classNameResult = addGlobalPopup.getClassName(); assertEquals( "className", classNameResult ); }