@Test
public void testErrorOccured() throws Exception {

    retry= new RetryStrategy(3, 100);
    retry.errorOccured();
    retry.errorOccured();
    Exception ex= null;
    try {
        retry.errorOccured();
    } catch (Exception e) {ex= e;}
    assertNotNull("Expected exception after some errors", ex);
}