platformMBeanServer = JmxUtil.registerNewJmxServer(new MockJMXServer());
defaultJsonSchemaInterpreter = new DefaultJsonSchemaInterpreter(schema);
facets = new ArrayList<FacetHandler<?>>();
runtimeFacets = new ArrayList<RuntimeFacetHandlerFactory<?, ?>>();
ShardingStrategy strategy = new ShardingStrategy() {
public int caculateShard(int maxShardId, JSONObject dataObj) throws JSONException {
return 0;
}
};
ActivityPersistenceFactory.setOverrideForCurrentThread(ActivityPersistenceFactory.getInMemoryInstance());