@Test
public void noCustomJudgeAllowedInNonCustomReduction() throws Exception {

  try {
    GlslReduce.mainHelper(new String[]{makeShaderJobAndReturnJsonFilename(),
        "--reduction-kind", "NO_IMAGE",
        "somejudgescript", "--output",
        temporaryFolder.getRoot().getAbsolutePath()},
        null);
    fail();
  } catch (RuntimeException exception) {
    assertTrue(exception.getMessage().contains("An interestingness test is only supported when "
        + "a custom reduction is used."));
  }
}