@Test
public void testParseShouldReturnTheMomentOfTimeoutWhenUsageIsTimeout() {

    //GIVEN
    given(dialogDescriptor.getAttribute("name")).willReturn("name");
    given(dialogDescriptor.getAttribute("usage")).willReturn("timeout");
    given(dialogDescriptor.getAttribute("validityValue")).willReturn("1");
    given(currentDateProvider.getCurrentTimeInMillis()).willReturn(1000L);
    //WHEN
    DialogDescriptorAttributes actual = underTest.getAttributes(dialogDescriptor);
    //THEN
    assertEquals(actual.getTimeout(), 61000L);
}