### Question:
BaseRemoteService implements RemoteService { public String getEventBridgeFactoryName() { return eventBridgeFactoryName; } BaseRemoteService(ObjectContextFactory contextFactory, Map<String, String> eventBridgeProperties); String getEventBridgeFactoryName(); Map<String, String> getEventBridgeParameters(); @Override RemoteSession establishSession(); @Override RemoteSession establishSharedSession(String name); @Override Object processMessage(ClientMessage message); @Override void close();  }### Answer:
@Test public void testConstructor() throws Exception { Map<String, String> map = new HashMap<>(); map.put(Constants.SERVER_ROP_EVENT_BRIDGE_FACTORY_PROPERTY, MockEventBridgeFactory.class.getName()); ObjectContextFactory factory = new ObjectContextFactory() { public ObjectContext createContext(DataChannel parent) { return null; } public ObjectContext createContext() { return null; } }; BaseRemoteService service = new BaseRemoteService(factory, map) { @Override protected ServerSession createServerSession() { return null; } @Override protected ServerSession createServerSession(String name) { return null; } @Override protected ServerSession getServerSession() { return null; } }; assertEquals(MockEventBridgeFactory.class.getName(), service.getEventBridgeFactoryName()); assertSame(factory, service.contextFactory); }