FileEntry extends VirtualFileEntry { public String getMediaType() throws ServerException { return getVirtualFile().getMediaType(); } FileEntry(String workspace, VirtualFile virtualFile); @Override FileEntry copyTo(String newParent); @Override FileEntry copyTo(String newParent, String newName, boolean override); @Override void moveTo(String newParent); @Override void moveTo(String newParent, String name, boolean overWrite); String getMediaType(); void setMediaType(String mediaType); InputStream getInputStream(); byte[] contentAsBytes(); void updateContent(byte[] content, String mediaType); void updateContent(byte[] content); void updateContent(InputStream content); void updateContent(InputStream content, String mediaType); void rename(String newName, String newMediaType);  }
@Test public void testGetMediaType() throws Exception { Assert.assertEquals(myFile.getMediaType(), myVfFile.getMediaType()); }