public Object getSharedObject(String resourceName) {
      return this.sharedObjects.get(resourceName);
    }
Shared context factories used in unit tests. This is a temporarily solution to enable sharing of test latches in different
scope of context (i.e. in the container or the task). This is not intended for production usage.
samza-test/src/test/java/org/apache/samza/test/processor/SharedContextFactories.java