private static class MockUtils {
private static final int MOCK_TABID = 0;
private static void createMockBackgroundPage() {
Server.listen(WindowExt.getHostWindow(), CHANNEL_NAME,
new ServerListener() {
public void onClientChannelRequested(Request request) {
request.accept(new WindowChannel.Listener() {
// We make mock stubs of the DataInstance and the
// TabDescription.
final DataInstance dataInstance = createMockDataInstance();