public void addMimeMapping(String extension, String type) {
        handler.getMimeTypes().addMimeMapping(extension, type);
    }
@Test
    void addsMimeMapping() {
        environment.addMimeMapping("foo", "example/foo");

        assertThat(handler.getMimeTypes().getMimeMap()).containsEntry("foo", "example/foo");
    }