public class ClientLocalRuntimeTest extends TestCase {
public void testDefaultConstructor() {
Module serverModule = new Module() {
public void configure(Binder binder) {
}
};
ClientLocalRuntime runtime = new ClientLocalRuntime(
DIBootstrap.createInjector(serverModule),
Collections.EMPTY_MAP);
assertEquals(2, runtime.getModules().length);
Module m0 = runtime.getModules()[0];
assertTrue(m0 instanceof ClientModule);
}