### Question:
SchemaGenerator { public void useKubernetesVersion(String version) throws IOException { KubernetesSchemaReference reference = KubernetesSchemaReference.create(version); URL cacheUrl = reference.getKubernetesSchemaCacheUrl(); if (cacheUrl == null) { throw new IOException("No schema cached for Kubernetes " + version); } addExternalSchema(reference.getKubernetesSchemaUrl(), cacheUrl); }  static String prettyPrint(Object schema); void useKubernetesVersion(String version); void addExternalSchema(URL schemaUrl, URL cacheUrl); void setIncludeAdditionalProperties(boolean includeAdditionalProperties); void setSupportObjectReferences(boolean supportObjectReferences); void setIncludeSchemaReference(boolean includeSchemaReference); void addPackageToSuppressDescriptions(String packageName); Map<String, Object> generate(Class someClass);  }### Answer:
@Test(expected = IOException.class) public void whenNonCachedK8sVersionSpecified_throwException() throws IOException { generator.useKubernetesVersion("1.12.0"); }