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