### Question:
RttiGenerator { public RttiGenerationResult getJavaScriptSource(String name, List<Class<?>> javaClasses, UrlResolver urlResolver, DateTime generationDateTime) { JavaScriptBuilder builder = new JavaScriptBuilder() .namespace(WebPageUrl.class) .constructor(WebPageUrl.class) ._constructor(); for(Class<?> javaClass : javaClasses) { builder .namespace(javaClass) .code(javaClass.getName()).code(" = ").code(javaClass.getName()).code(" || {}").semicolon().newLine() .staticFunction(javaClass, "getName") .code("return ").literal(javaClass.getName()).semicolon().newLine() ._function() .staticFunction(javaClass, "getSimpleName") .code("return ").literal(javaClass.getSimpleName()).semicolon().newLine() ._function() .staticFunction(javaClass, "getAnnotation") .code("return { ").newLine() .property("value").anonymousFunction() .code("return ").literal(urlResolver.resolveWebPage(javaClass.getName())).semicolon().newLine() ._function() .code("};").newLine() ._function(); } return new RttiGenerationResult(name, generationDateTime, new JavaScriptResult(builder.create())); }  RttiGenerationResult getJavaScriptSource(String name, List<Class<?>> javaClasses, UrlResolver urlResolver, DateTime generationDateTime);  }### Answer:
@Test public void testGetJavaScriptSource() { RttiGenerationResult result = new RttiGenerator().getJavaScriptSource("", Lists.<Class<?>>newArrayList( TestWebPage.class), new UrlResolver("", ""), new DateTime()); assertThat(result.getSingleResult().getSource(), containsString(TestWebPage.class.getName())); assertThat(result.getSingleResult().getSource(), containsString(TestWebPage.class.getSimpleName())); }