@Test
public void customJudgeRequiredInCustomReduction() throws Exception {

  try {
    GlslReduce.mainHelper(new String[]{makeShaderJobAndReturnJsonFilename(), "--reduction-kind",
        "CUSTOM", "--output",
        temporaryFolder.getRoot().getAbsolutePath()}, null);
    fail();
  } catch (RuntimeException exception) {
    assertTrue(exception.getMessage().contains("A custom reduction requires an interestingness "
        + "test to be specified."));
  }
}