### Question:
NewContainerFormPresenter implements WizardPage { public boolean isEmpty() { return view.getContainerName().trim().isEmpty() && view.getGroupId().trim().isEmpty() && view.getArtifactId().trim().isEmpty() && view.getVersion().trim().isEmpty(); } @Inject  NewContainerFormPresenter(final Logger logger,
                                     final View view,
                                     final ManagedInstance<ArtifactListWidgetPresenter> artifactListWidgetPresenterProvider,
                                     final Caller<M2RepoService> m2RepoService,
                                     final Caller<SpecManagementService> specManagementService,
                                     final Event<WizardPageStatusChangeEvent> wizardPageStatusChangeEvent); @PostConstruct void init(); void addContentChangeHandler(final ContentChangeHandler contentChangeHandler); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void initialise(); @Override void prepareView(); Mode getMode(); @Override Widget asWidget(); void clear(); boolean isContainerNameValid(); boolean isGroupIdValid(); boolean isArtifactIdValid(); boolean isVersionValid(); boolean isArtifactSupportedByServer(); boolean isValid(); boolean isEmpty(); ServerTemplate getServerTemplate(); void setServerTemplate(final ServerTemplate serverTemplate); ContainerSpec buildContainerSpec(final String serverTemplateId,
                                            final Map<Capability, ContainerConfig> configs); View getView(); void showBusyIndicator(String deploymentId); void hideBusyIndicator(); GAV getCurrentGAV(); static final String SNAPSHOT; }### Answer:
@Test public void testIsEmpty() { when(view.getContainerName()).thenReturn(" "); when(view.getGroupId()).thenReturn(" "); when(view.getArtifactId()).thenReturn(" "); when(view.getVersion()).thenReturn(" "); assertTrue(presenter.isEmpty()); }