DevfileSchemaProvider { public StringReader getAsReader(String version) throws IOException { return new StringReader(getSchemaContent(version)); }  String getSchemaContent(String version); StringReader getAsReader(String version);  }
@Test public void shouldGetProperDevfileSchemaContentAsReader() throws IOException { StringReader contentReader = devfileSchemaProvider.getAsReader(CURRENT_API_VERSION); assertNotNull(contentReader); StringBuilder contentBuilder = new StringBuilder(); int c; while ((c = contentReader.read()) != -1) { contentBuilder.append((char) c); } assertTrue( contentBuilder .toString() .contains("This schema describes the structure of the devfile object")); }