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