### Question:
TriggerContext implements AutoCloseable { public static TriggerContext get() { if (currentContext.get() == null) throw new IllegalStateException("Trigger context not set."); return currentContext.get(); } private  TriggerContext(TriggerEventConsumer triggerEventConsumer); static TriggerContext get(); static TriggerContext set(TriggerContext ctx); static boolean isSet(); static TriggerContext clear(); static Builder builder(); @Override void close(); TriggerContext registerTriggerEvent(TriggerEvent event);  }### Answer:
@Test(expected = IllegalStateException.class) public void testGetContextNotSet() { TriggerContext.get(); }