protected abstract void startJsonRpcServer(
RomServerJsonRpcHandler jsonRpcHandler);
public void useRom(JsonRpcClient client) {
RemoteObjectTypedFactory factory = new RemoteObjectTypedFactory(
new RemoteObjectFactory(new RomClientJsonRpcClient(client)));
SampleClass obj = factory.getFactory(SampleClass.Factory.class)
.create("XXX", false).withAtt3(0.5f).withAtt4(22).build();
for (int i = 0; i < 5; i++) {
assertEquals(obj.getAtt1(), "XXX");