mainBinder.install(Modules.override(new SingularityMesosModule())
.with(new Module() {
@Override
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());