VersionCheckActionFactory extends AbstractLeaderAwareHealthCheckActionFactory implements OneWaySupport { @Override public SiteLeaderAwareHealthCheckAction create(RedisHealthCheckInstance instance) { return new VersionCheckAction(scheduled, instance, executors, alertManager); }  @Override SiteLeaderAwareHealthCheckAction create(RedisHealthCheckInstance instance); @Override Class<? extends SiteLeaderAwareHealthCheckAction> support();  }
@Test public void testCreate() { Assert.assertTrue(instance.getHealthCheckActions().size() > 0); VersionCheckAction action = (VersionCheckAction) instance.getHealthCheckActions().get(0); Assert.assertTrue(action.getLifecycleState().isEmpty()); }