PipeHttpResponseTo extends InterpretableStatement { public String render(OsFamily family) { checkArgument(family != OsFamily.WINDOWS, "windows not supported"); return super.render(family); } PipeHttpResponseTo(Statement toExec, String method, URI endpoint, Multimap<String, String> headers); String render(OsFamily family);  }
@Test(expectedExceptions = IllegalArgumentException.class) public void testPipeHttpResponseToBashWINDOWS() { bash.render(OsFamily.WINDOWS); }