String log = HystrixRequestLog.getCurrentRequest().getExecutedCommandsAsString();
// strip the actual count so we can compare reliably
log = log.replaceAll(DIGITS_REGEX, "[");
assertEquals("TestCommand[SUCCESS][ms]", log);
} finally {
context.shutdown();
}
}
@Test
public void testSuccessFromCache() {