if(OSGiFilter.contains(key)) {
final HcLogSetter hls = LOG_SETTERS.get(key);
final ServiceReference ref = Mockito.mock(ServiceReference.class);
Mockito.when(ref.getProperty(Constants.SERVICE_ID)).thenReturn(random.nextLong());
Mockito.when(ref.getProperty(HealthCheck.NAME)).thenReturn("someTest");
final HealthCheck hc = new HealthCheck() {
@Override
public Result execute() {
final FormattingResultLog log = new FormattingResultLog();
return new Result(hls.setLog(log));
}