### Question:
SugarApp extends Application { @Override public void onTerminate() { super.onTerminate(); SugarContext.terminate(); }  @Override void onCreate(); @Override void onTerminate();  }### Answer:
@Test(expected = NullPointerException.class) public void testOnTerminate() { SugarApp app = new SugarApp(); app.onCreate(); app.onTerminate(); SugarContext context = SugarContext.getSugarContext(); Assert.assertNull(context); }