### Question:
Document2004 implements IDocument, IElement { @Override public String getUri() { String uri = "<?xml version=\"1.0\" encoding=\"" + this.encoding + "\" standalone=\"yes\"?> " + "<?mso-application progid=\"Word.Document\"?> " + "<w:wordDocument xmlns:aml=\"http: + " xmlns:dt=\"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882\" xmlns:mo=\"http: + " xmlns:ve=\"http: + " xmlns:mv=\"urn:schemas-microsoft-com:mac:vml\" xmlns:o=\"urn:schemas-microsoft-com:office:office\" " + " xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w10=\"urn:schemas-microsoft-com:office:word\" " + " xmlns:w=\"http: + " xmlns:wx=\"http: + " xmlns:wsp=\"http: + " xmlns:sl=\"http: + " w:macrosPresent=\"no\" w:embeddedObjPresent=\"no\" w:ocxPresent=\"no\" " + " xml:space=\"preserve\"> " + " <w:ignoreSubtree w:val=\"http: return uri; }  @Override String getContent(); @Override void setPageOrientationLandscape(); @Override IBody getBody(); @Override IFooter getFooter(); @Override IHeader getHeader(); @Override void addEle(IElement e); @Override void addEle(String str); @Override String toString(); @Override Document2004 title(String title); @Override Document2004 subject(String subject); @Override Document2004 keywords(String keywords); @Override Document2004 description(String description); @Override Document2004 category(String category); @Override Document2004 author(String author); @Override Document2004 lastAuthor(String lastAuthor); @Override Document2004 manager(String manager); @Override Document2004 company(String company); @Override Document2004 encoding(Encoding encoding); @Override Document2004 encoding(String encoding); @Override String getUri(); static final String DocumentHead; }### Answer:
@Test public void testUri() { IDocument myDoc = new Document2004(); String expected = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?> " + "<?mso-application progid=\"Word.Document\"?> " + "<w:wordDocument xmlns:aml=\"http: + " xmlns:dt=\"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882\" xmlns:mo=\"http: + " xmlns:ve=\"http: + " xmlns:mv=\"urn:schemas-microsoft-com:mac:vml\" xmlns:o=\"urn:schemas-microsoft-com:office:office\" " + " xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w10=\"urn:schemas-microsoft-com:office:word\" " + " xmlns:w=\"http: + " xmlns:wx=\"http: + " xmlns:wsp=\"http: + " xmlns:sl=\"http: + " w:macrosPresent=\"no\" w:embeddedObjPresent=\"no\" w:ocxPresent=\"no\" " + " xml:space=\"preserve\"> " + " <w:ignoreSubtree w:val=\"http: assertEquals("Uri is not as expected: ", expected, myDoc.getUri()); }