SourceViewer.create(Document.get().getBody(), resources,
new SourceViewerInitializedCallback() {
public void onSourceViewerInitialized(SourceViewer viewer) {
viewer.loadResource("test-source.js",
new SourceViewerLoadedCallback() {
public void onSourceFetchFail(int statusCode,
SourceViewer viewer) {
assertTrue("Fetch failed.", false);
}