### Question:
ServiceRequestScopeImpl implements Scope { public void exit() { if (!isInsideScope()) throw new IllegalStateException("No scoping block in progress."); seededClasses.remove(); }  @Override Provider<T> scope(Key<T> key, Provider<T> unscoped); @Override String toString(); void seed(Key<T> key, T seed); boolean isInsideScope(); void enter(); void exit();  }### Answer:
@Test(expected = IllegalStateException.class) public void testExitNotEnteredScope() { scope.exit(); }