ReconnectionStrategy { public int getMaxAttempts() { return MaxAttempts; } ReconnectionStrategy(int maxAttempts, int reconnectInterval); int getNumberOfAttempts(); void setNumberOfAttempts(int numberOfAttempts); int getReconnectInterval(); void processAttempts(); int getMaxAttempts();  }
@Test public void testMaxAttemptsValue() { ReconnectionStrategy strategy = new ReconnectionStrategy(5, 1000); assertTrue("max attempts", strategy.getMaxAttempts() == 5); }