public void configure(Binder binder) {
SingularityLogSupport logSupport = mock(SingularityLogSupport.class);
binder.bind(SingularityLogSupport.class).toInstance(logSupport);
SingularityDriver mock = mock(SingularityDriver.class);
when(mock.kill((SingularityTaskId) Matchers.any())).thenReturn(Status.DRIVER_RUNNING);
when(mock.getMaster()).thenReturn(Optional.<MasterInfo> absent());
when(mock.start()).thenReturn(Status.DRIVER_RUNNING);
when(mock.getLastOfferTimestamp()).thenReturn(Optional.<Long>absent());
binder.bind(SingularityDriver.class).toInstance(mock);