@Test
public void shouldReturnValidEmptyDetector() {

    MimeTypeDetector detector = MimeTypeDetectors.createDetectorFor(
            RepositoryConfiguration.FieldValue.MIMETYPE_DETECTION_NONE, environment);
    assertEquals(NullMimeTypeDetector.INSTANCE, detector);
}