* @throws Exception
*/
@Test
public void testDDBasedClusteredBeanDeployment() throws Exception {
final Context ctx = new InitialContext();
final DDBasedClusteredBean ddBasedClusteredBean = (DDBasedClusteredBean) ctx.lookup("java:module/" + DDBasedClusteredBean.class.getSimpleName() + "!" + DDBasedClusteredBean.class.getName());
final int NUM_TIMES = 5;
for (int i = 0; i < NUM_TIMES; i++) {
ddBasedClusteredBean.increment();
}
Assert.assertEquals("Unexpected count on stateful bean", ddBasedClusteredBean.getCount(), NUM_TIMES);
}