/**
* Runs a test by created a NetworkResource with the given mimeType and confirming that the
* expected WebInspectorType is returned
*/
private void contentTypeTest(String mimeType, WebInspectorType expectedType) {
NetworkResource resource = getResource(getTestData(mimeType));
assertTrue(mimeType + " should have type " + expectedType,
WebInspectorType.getResourceType(resource) == expectedType);
}