@Test
public void noServerAllowedInCustomReduction() throws Exception {

  try {
    GlslReduce.mainHelper(new String[]{"--server", "some_server", "--worker", "some_worker",
            makeShaderJobAndReturnJsonFilename(), "--reduction-kind", "CUSTOM", "--output",
            temporaryFolder.getRoot().getAbsolutePath()}, null);
    fail();
  } catch (RuntimeException exception) {
    checkOptionNotAllowed(exception, "server");
  }
}