@Test
public void getPairs() throws Exception {

	Map<Long, XMLResources.Entry> pairs = this.xml.getPairs();
	assertEquals(4, pairs.size());

	XMLResources.Entry e;
	e = pairs.get(1l);
	assertNotNull(e);
	assertTrue(e.isEmbeddedData());
	assertSame(this.data, e.getEmbeddedData());
	assertNull(e.getFile());
	assertNull(e.getURL());
	assertEquals(MimeName.MIME_PDF.getMimeConstant(), e.getMimeType());
	e = pairs.get(2l);
	assertNotNull(e);
	assertTrue(e.isFile());
	assertEquals(new File("a.txt"), e.getFile()); //$NON-NLS-1$
	assertNull(e.getURL());
	assertNull(e.getEmbeddedData());
	assertEquals(MimeName.MIME_PLAIN_TEXT.getMimeConstant(), e.getMimeType());
	e = pairs.get(3l);
	assertNotNull(e);
	assertTrue(e.isURL());
	assertEquals(new URL("file:b.txt"), e.getURL()); //$NON-NLS-1$
	assertNull(e.getFile());
	assertNull(e.getEmbeddedData());
	assertEquals(MimeName.MIME_PLAIN_TEXT.getMimeConstant(), e.getMimeType());
	e = pairs.get(4l);
	assertNotNull(e);
	assertTrue(e.isFile());
	assertEquals(new File("a.jpg"), e.getFile()); //$NON-NLS-1$
	assertNull(e.getURL());
	assertNull(e.getEmbeddedData());
	assertEquals(MimeName.MIME_JPG.getMimeConstant(), e.getMimeType());
}