@Test
void getResourceWhenServletContextNotSet()
{

    Throwable exception = assertThrows(RuntimeException.class, () -> {
        this.environment.getResource("/whatever");
    });
    assertEquals("The Servlet Environment has not been properly initialized (The Servlet Context is not set)",
        exception.getMessage());
}