CreateEntity implements IsWidget { public void clear() { identifier = null; setNoneValidationState(); view.clear(); } @Inject  CreateEntity(final ClientUserSystemManager userSystemManager,
                        final View view); @PostConstruct void init(); @Override Widget asWidget(); void show(final String legend,
                     String placeholder); void setErrorState(); String getEntityIdentifier(); void clear(); public View view; }
@Test public void testClear() throws Exception { presenter.clear(); verify(view, times(1)).clear(); verify(view, times(1)).setValidationState(ValidationState.NONE); verify(view, times(0)).show(anyString(), anyString()); assertNull(presenter.identifier); }