@Test(expected = IllegalStateException.class)
  public void testGetMissingExternalContext() {
    Context context = buildWithExternalContext(null);
    context.getExternalContext();
  }
Given no concrete context, getExternalContext should throw an exception.
samza-core/src/test/java/org/apache/samza/context/TestContextImpl.java