@Test
public void testGetValue() {

    when(view.getQuantity()).thenReturn(1d);
    when(view.getSelectedIntervalTypeIndex()).thenReturn(0);
    final String value = presenter.getValue();
    assertEquals("1 second", value);
    verify(view, times(1)).getQuantity();
    verify(view, times(1)).getSelectedIntervalTypeIndex();
    verify(view, times(0)).setQuantity(10d);
    verify(view, times(0)).setSelectedIntervalType(anyInt());
    verify(view, times(0)).setEnabled(anyBoolean());
    verify(view, times(0)).addHelpContent(anyString(), anyString(), any(Placement.class));
    verify(view, times(0)).init(presenter);
    verify(view, times(0)).addIntervalTypeItem(anyString());
}