@Test(expected=IllegalArgumentException.class)
public void testMaxTriesLessThanOneThrowsException() throws Exception {

    ServiceRetrier retrier = new ServiceRetrier();
    retrier.setMaxTries(-1);
}