@Test
  public void testEnsureValid_retryStrategy_invalid() throws Exception {
    when(validator.validate(retryStrategy)).thenReturn(ERROR_LIST);
    expectedException.expect(ValidationEnforcer.ValidationException.class);

    enforcer.ensureValid(retryStrategy);
  }
Tests for the {@link ValidationEnforcer} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/ValidationEnforcerTest.java