TitledAttachmentFileWidget extends Composite { public void clearStatus() { updateAssetList(); errorLabel.setText(null); selectedPath = null; } TitledAttachmentFileWidget(String title,
                                      Caller<ScenarioSimulationService> scenarioSimulationService, ScenarioSimulationDropdown scenarioSimulationDropdown); void clearStatus(); void updateAssetList(); String getSelectedPath(); boolean validate();  }
@Test public void clearStatus() { titledAttachmentFileWidget.selectedPath = "SELECTED_PATH"; assertNotNull(titledAttachmentFileWidget.selectedPath); titledAttachmentFileWidget.clearStatus(); verify(titledAttachmentFileWidget, times(1)).updateAssetList(); verify(errorLabelMock, times(1)).setText(eq(null)); assertNull(titledAttachmentFileWidget.selectedPath); }