### Question:
Config { public static Config parse(final InputStream stream) throws IOException, BadConfigException { return parse(new BufferedReader(new InputStreamReader(stream))); } private  Config(final Builder builder); static Config parse(final InputStream stream); static Config parse(final BufferedReader reader); @Override boolean equals(final Object obj); Interface getInterface(); List<Peer> getPeers(); @Override int hashCode(); @Override String toString(); String toWgQuickString(); String toWgUserspaceString();  }### Answer:
@Test(expected = BadConfigException.class) public void invalid_config_throws() throws IOException, BadConfigException { try (final InputStream is = Objects.requireNonNull(getClass().getClassLoader()).getResourceAsStream("broken.conf")) { Config.parse(is); } }