@Test(expected = IllegalStateException.class)
public void testSetContextTwice() throws Exception {

  try (TriggerContext ignored = TriggerContext.set(context)) {
    TriggerContext.set(context);
  }
}