RemoteActionRegistryMXBeanImpl extends AbstractRegistryMXBean<ActionRoutingTable, DOMActionInstance> implements RemoteActionRegistryMXBean { @Override public String getBucketVersions() { return bucketVersions(); } RemoteActionRegistryMXBeanImpl(final BucketStoreAccess actionRegistryAccess, final Timeout timeout); @Override Set<String> getLocalRegisteredAction(); @Override Map<String, String> findActionByName(final String name); @Override Map<String, String> findActionByRoute(final String routeId); @Override String getBucketVersions();  }
@Test public void testGetBucketVersionsEmptyBuckets() { final String bucketVersions = mxBean.getBucketVersions(); Assert.assertEquals(Collections.emptyMap().toString(), bucketVersions); }
@Test public void testGetBucketVersions() { testActor.tell(new ActionRegistry.Messages.UpdateActions(Lists.newArrayList(buckets), Collections.emptyList()), ActorRef.noSender()); final String bucketVersions = mxBean.getBucketVersions(); Assert.assertTrue(bucketVersions.contains(testActor.provider().getDefaultAddress().toString())); }