### Question:
ResourceDetailsJaxrsService { protected String extractType(String mimeType, String name) { String type = null; if(mimeType == null){ throw new MandatoryParameterNotFoundException("Content-Type"); } if (mimeType.contains(";")) { mimeType = mimeType.split(";")[0].trim(); } if (mimeType.equals(MediaType.APPLICATION_OCTET_STREAM)) { type = ContentResource.TYPE_UNSPECIFIED; } else { String wildcardMimeType = mimeType.replaceFirst("/.*", "/*"); for (ClientFile.FileType eType : ClientFile.FileType.values()) { if (eType.getMimeType().equalsIgnoreCase(mimeType) || eType.getMimeType() .equalsIgnoreCase(wildcardMimeType)) { type = eType.toString(); } } if (type == null && name.contains(".") && !name.endsWith(".")) { String extension = name.substring(name.lastIndexOf(".") + 1); if (contentTypeMapping.containsKey(extension)) { type = extension; } } } return type == null ? ContentResource.TYPE_UNSPECIFIED : type; }  Response getResourceDetails(String uri, String accept, Boolean _expanded, Set<String> expandTypes, List<String> includes,
                                       Map<String, String[]> additionalProperties); Response deleteResource(String uri); ClientResource createResourceViaForm(FormDataMultiPart multiPart, String parentUri, Boolean createFolders,
            String accept, boolean dryRun, Map<String, String[]> additionalProperties); Response defaultPostHandler(InputStream stream, String uri, String sourceUri, String disposition,
            String description, String rawMimeType, String accept, Boolean createFolders, Boolean overwrite,
            String renameTo, boolean dryRun, Map<String, String[]> additionalProperties); Response updateResourceViaForm(FormDataMultiPart multiPart, String uri, boolean createFolders, String accept,
            boolean dryRun, Map<String, String[]> additionalProperties); Response updateFileViaForm(InputStream stream, String uri, String label, String description, String type, boolean dryRun); Response defaultPutHandler(InputStream stream, String uri, String sourceUri, String disposition,
            String description, String rawMimeType, String accept, Boolean createFolders, Boolean overwrite,
            String renameTo, boolean dryRun, Map<String, String[]> additionalProperties); ClientResource createResource(ClientResource resourceLookup, String parentUri, boolean createFolders, boolean dryRun, String accept); ClientResource createResource(ClientResource resourceLookup, String parentUri, boolean createFolders,
            boolean dryRun, String accept, Map<String, String[]> additionalProperties); ClientResource createResource(ClientResource resourceLookup, String parentUri, boolean createFolders,
            Map<String, InputStream> attachments, boolean dryRun, String accept, Map<String, String[]> additionalProperties); ClientResource updateResource(ClientResource resourceLookup, String uri,
            Map<String, InputStream> attachments, boolean dryRun, Map<String, String[]> additionalProperties); static final String PATH_PARAM_URI; }### Answer:
@Test(groups = "CREATE_FILE") public void extractType_mimeType_caseInsensitive(){ assertEquals(service.extractType(ClientFile.FileType.accessGrantSchema.getMimeType().toUpperCase(), null), ClientFile.FileType.accessGrantSchema.toString()); assertEquals(service.extractType(ClientFile.FileType.accessGrantSchema.getMimeType().toLowerCase(), null), ClientFile.FileType.accessGrantSchema.toString()); }