Assert.assertTrue("Expected \'His Brother Darrel\', got " + dummy.getName(), "His Brother Darrel".equals(dummy.getName()));
}
@Test
public void testVersionedAssociationRange() throws ExecutionException, InterruptedException, IOException {
AssociationManagement aMgr = new DefaultAssociationManagement();
AssociationDescriptor descriptor = AssociationDescriptor.create("Dummy", Dummy.class, System.getProperty("org.rioproject.groups"));
descriptor.setMatchOnName(false);
descriptor.setVersion("2.8");
Association<Dummy> association = aMgr.addAssociationDescriptor(descriptor);
Dummy dummy = association.getServiceFuture().get();
Assert.assertNotNull(dummy);
Assert.assertEquals("Expected 1 got "+association.getServiceCount(), 1, association.getServiceCount());
Assert.assertTrue("Expected \'His Other Brother Darrel\', got "+dummy.getName(), "His Other Brother Darrel".equals(dummy.getName()));
}