### Question:
DropwizardModule extends AbstractModule { @Provides @Singleton @Graceland Environment provideEnvironment() { Preconditions.checkState(environment != null, "Environment has not been set."); return environment; }  void setup(PlatformConfiguration config, Environment env);  }### Answer:
@Test(expected = IllegalStateException.class) public void must_set_environemnt_before_providing_environment() { dropwizardModule.provideEnvironment(); }