### Question:
SkinAction extends XWikiAction { public boolean isJavascriptMimeType(String mimetype) { boolean result = "text/javascript".equalsIgnoreCase(mimetype) || "application/x-javascript".equalsIgnoreCase(mimetype) || "application/javascript".equalsIgnoreCase(mimetype); result |= "application/ecmascript".equalsIgnoreCase(mimetype) || "text/ecmascript".equalsIgnoreCase(mimetype); return result; }  @Override String render(XWikiContext context); String render(String path, XWikiContext context); String getSkinFilePath(String filename, String skin); String getResourceFilePath(String filename); boolean renderFileFromObjectField(String filename, XWikiDocument doc, final XWikiContext context); boolean renderFileFromAttachment(String filename, XWikiDocument doc, XWikiContext context); boolean isJavascriptMimeType(String mimetype); boolean isCssMimeType(String mimetype);  }### Answer:
@Test public void isTextJavascriptJavaScriptMimetype() { assertTrue(this.action.isJavascriptMimeType("text/javascript")); }
@Test public void isApplicationJavascriptJavaScriptMimetype() { assertTrue(this.action.isJavascriptMimeType("application/javascript")); }
@Test public void isApplicationXJavascriptJavaScriptMimetype() { assertTrue(this.action.isJavascriptMimeType("application/x-javascript")); }
@Test public void isTextEcmascriptJavaScriptMimetype() { assertTrue(this.action.isJavascriptMimeType("text/ecmascript")); }
@Test public void isApplicationEcmascriptJavaScriptMimetype() { assertTrue(this.action.isJavascriptMimeType("application/ecmascript")); }
@Test public void npeJavascriptMimetype() { assertFalse(this.action.isJavascriptMimeType(null)); }