@Test
public void testOnValueChanged() throws Exception {

    final Boolean newValue = true;
    presenter.onValueChanged(newValue);
    assertEquals(newValue, presenter.getValue());
    verify(view, times(1)).clearError();
    verify(view, times(0)).setValue(newValue);
    verify(view, times(0)).showError(any(SafeHtml.class));
    verify(view, times(0)).init(presenter);
    verify( valueChangeEvent, times( 1 ) ).fire(any(ValueChangeEvent.class));
}