@Test
public void noReferenceAllowedInCustomReduction() throws Exception {

  try {
    GlslReduce.mainHelper(new String[]{"--reference", "reference.info.json",
        makeShaderJobAndReturnJsonFilename(),
        "--reduction-kind", "CUSTOM", "--output", temporaryFolder.getRoot().getAbsolutePath()},
        null);
    assertTrue(false);
  } catch (RuntimeException exception) {
    checkOptionNotAllowed(exception, "reference");
  }
}