### Question:
SchemaBootstrapScript { @NoJavadoc public Reader getScriptReader() throws IOException { StringReader reader; if (scriptContent != null) { reader = new StringReader(scriptContent.toString()); } else { InputStream resourceAsStream = Objects.requireNonNull( this.getClass().getClassLoader().getResourceAsStream(resourceLocation), "Invalid resource path provided for sql file, resource could not be located: " + resourceLocation); reader = new StringReader(IOUtils.toString(resourceAsStream)); } return reader; } SchemaBootstrapScript(String resourceLocation, String description, int schemaVersion);  SchemaBootstrapScript(StringBuilder scriptContent, String description, int schemaVersion); String getDescription(); int getSchemaVersion(); @NoJavadoc Reader getScriptReader();  }### Answer:
@Test public void testGetScriptReaderFromFile() throws Exception { schemaBootstrapScript = new SchemaBootstrapScript("test.sql", "test", 1); final Reader reader = schemaBootstrapScript.getScriptReader(); final List<String> lines = IOUtils.readLines(reader); assertTrue(reader instanceof StringReader); assertTrue(lines.equals(Arrays.asList(EXPECTED.split("\n")))); }
@Test public void testGetScriptReaderFromStringBuilder() throws Exception { final StringBuilder stringBuilder = new StringBuilder(EXPECTED); schemaBootstrapScript = new SchemaBootstrapScript(stringBuilder, "test", 1); final Reader reader = schemaBootstrapScript.getScriptReader(); assertTrue(reader instanceof StringReader); assertEquals(EXPECTED, IOUtils.toString(reader)); }