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