Image extends Component { public String getInternalPath() { try { if (mImageURI == null) mImageURI = new URI(mImageElement.getXlinkHrefAttribute()); return mImageURI.toString(); } catch (URISyntaxException e) { Logger.getLogger(Image.class.getName()).log(Level.SEVERE, e.getMessage(), e); } return null; } private  Image(DrawImageElement drawElement); static Image getInstanceof(DrawImageElement imageElement); void setHyperlink(URI linkto); URI getHyperlink(); Document getOwnerDocument(); FrameStyleHandler getStyleHandler(); DrawImageElement getOdfElement(); Frame getFrame(); static Image newImage(FrameContainer container, URI uri); static Image newImage(Frame frame, URI uri); static String getPackagePath(OdfSchemaDocument mOdfSchemaDoc, String imageRef); static URI configureInsertedImage(OdfSchemaDocument mOdfSchemaDoc, DrawImageElement imageElement,
			String packagePath, boolean isResetSize); static Iterator<Image> imageIterator(FrameContainer container); boolean remove(); void updateImage(URI imageUri); InputStream getImageInputStream(); String getInternalPath(); String getMediaTypeString(); void setName(String name); String getName(); void setRectangle(FrameRectangle rectangle); FrameRectangle getRectangle(); void setTitle(String title); String getTitle(); String getDesciption(); void setDescription(String description); void setHorizontalPosition(FrameHorizontalPosition horizontalPos); void setVerticalPosition(FrameVerticalPosition verticalPos); FrameHorizontalPosition getHorizontalPosition(); FrameVerticalPosition getVerticalPosition();  }
@Test public void testGetInternalPath() { try { TextDocument doc = TextDocument.newTextDocument(); Paragraph para = doc.addParagraph("updateImage test"); Image image = Image.newImage(para, ResourceUtilities.getURI("image_list_item.png")); String internalPath = image.getInternalPath(); Assert.assertEquals("Pictures/image_list_item.png", internalPath); } catch (Exception e) { Logger.getLogger(ImageTest.class.getName()).log(Level.SEVERE, null, e); Assert.fail(); } }