@Test
public void testIsEnabledWhenUsageIsTimeoutAndCurrentTimeIsGreaterThanTimeoutShouldSetUsageToDisabled() {

    //GIVEN
    attributes = new DialogDescriptorAttributes("name", DialogDescriptorUsage.TIMEOUT);
    attributes.setTimeout(1000L);
    dialogDescriptor = new DialogDescriptor(attributes, null, null);
    given(currentDateProvider.getCurrentTimeInMillis()).willReturn(2000L);
    //WHEN
    underTest.isEnabled(dialogDescriptor);
    //THEN
    assertEquals(dialogDescriptor.getAttributes().getUsage(), DialogDescriptorUsage.DISABLED);
}