bind(JobService.class).toInstance(mock(JobService.class));
bind(JobHandlerRegistry.class).toInstance(mock(JobHandlerRegistry.class));
bind(new TypeLiteral<Supplier<Condition>>(){}).annotatedWith(DefaultJoinFilter.class)
.toInstance(Suppliers.ofInstance(Conditions.alwaysFalse()));
MetricRegistry metricRegistry = new MetricRegistry();
<BUG>bind(MetricRegistry.class).toInstance(metricRegistry);
install(new DatabusModule(serviceMode, metricRegistry));</BUG>
}
});
}

bind(JobService.class).toInstance(mock(JobService.class));
bind(JobHandlerRegistry.class).toInstance(mock(JobHandlerRegistry.class));
bind(new TypeLiteral<Supplier<Condition>>(){}).annotatedWith(DefaultJoinFilter.class)
.toInstance(Suppliers.ofInstance(Conditions.alwaysFalse()));
MetricRegistry metricRegistry = new MetricRegistry();
bind(MetricRegistry.class).toInstance(metricRegistry);
bind(Clock.class).toInstance(mock(Clock.class));
install(new DatabusModule(serviceMode, metricRegistry));
}
});
