@Test
public void testIncreaseQuantity() {

    TimeAmount timeAmount = new TimeAmount(10, DateIntervalType.DAY);
    TimeAmountEditor timeAmountEditor = new TimeAmountEditor(timeAmountView);
    timeAmountEditor.init(timeAmount, changeCommand);
    timeAmountEditor.increaseQuantity();
    verify(timeAmountView).setQuantity(11);
    verify(changeCommand).execute();
    assertEquals(timeAmount.getQuantity(), 11);
}