### Question:
YubicoClient { public void setMaxRetries(int maxRetries) { if (maxRetries < 0) { throw new IllegalArgumentException("negative maxRetries is not valid."); } this.maxRetries = maxRetries; }  abstract VerificationResponse verify(String otp); Integer getClientId(); void setClientId(Integer clientId); void setKey(String key); String getKey(); void setSync(Integer sync); void setMaxRetries(int maxRetries); String[] getWsapiUrls(); void setWsapiUrls(String[] wsapi); void setUserAgent(String userAgent); static YubicoClient getClient(Integer clientId, String key); static String getPublicId(String otp); static boolean isValidOTPFormat(String otp);  }### Answer:
@Test(expected=IllegalArgumentException.class) public void testNegativeMaxRetries() { client.setMaxRetries(-1); }