### Question:
View implements RequestAuthenticationInfo { public int getPreferredWidth() { return preferredWidth; } View(String name, List<Element> elements, Uri base); private  View(View view, Substitutions substituter); String getName(); ContentType getType(); String getRawType(); Uri getHref(); boolean getQuirks(); int getPreferredHeight(); int getPreferredWidth(); String getContent(); void setHrefContent(String content); boolean needsUserPrefSubstitution(); AuthType getAuthType(); boolean isSignOwner(); boolean isSignViewer(); Map<String, String> getAttributes(); PipelinedData getPipelinedData(); View substitute(Substitutions substituter); @Override String toString();  }### Answer:
@Test public void testPreferredWidth() throws Exception { String content1 = "<Content type=\"html\" preferred_width=\"300\"/>"; String content2 = "<Content type=\"html\" preferred_width=\"172\"/>"; View view = new View("test", Arrays.asList(XmlUtil.parse(content1), XmlUtil.parse(content2)), SPEC_URL); assertEquals(172, view.getPreferredWidth()); }