class OverstayManagerTests() { @Test fun Should_Enable_Overstay_If_Its_Disabled_And_Set_Start_And_End_Date() { //PREPARE val fixture = Fixture() .withCurrentDate(DateFactory.getDate(2016, 5, 5, 10, 0, 0)) val isEnabledBefore = fixture.sutpls? //WHEN } class Fixture() { val bus: EventBus = mock() val currentDateTime: ICurrentDateTime = mock() val sut: IOverstayManager = OverstayManager(bus, currentDateTime) fun withCurrentDate(date: Date) { whenever(currentDateTime.currentDateTime).thenReturn(date) } } }