private static Context buildWithApplicationTaskContext(ApplicationTaskContext applicationTaskContext) {
    return buildWithApplicationContext(mock(ApplicationContainerContext.class), applicationTaskContext,
        mock(ExternalContext.class));
  }
Given no concrete context, getExternalContext should throw an exception.
samza-core/src/test/java/org/apache/samza/context/TestContextImpl.java