### Question:
Preload implements RequestAuthenticationInfo { public AuthType getAuthType() { return auth; } Preload(Element preload, Uri base); private  Preload(Preload preload, Substitutions substituter); Uri getHref(); AuthType getAuthType(); boolean isSignOwner(); boolean isSignViewer(); Map<String, String> getAttributes(); Set<String> getViews(); Preload substitute(Substitutions substituter); @Override String toString();  }### Answer:
@Test public void authzSigned() throws Exception { String xml = "<Preload href='" + HREF + "' authz='signed'/>"; Preload preload = new Preload(XmlUtil.parse(xml), SPEC_URL); assertEquals(AuthType.SIGNED, preload.getAuthType()); }
@Test public void authzOAuth() throws Exception { String xml = "<Preload href='" + HREF + "' authz='oauth'/>"; Preload preload = new Preload(XmlUtil.parse(xml), SPEC_URL); assertEquals(AuthType.OAUTH, preload.getAuthType()); }
@Test public void authzUnknownTreatedAsNone() throws Exception { String xml = "<Preload href='foo' authz='bad-bad-bad value!'/>"; Preload preload = new Preload(XmlUtil.parse(xml), SPEC_URL); assertEquals(AuthType.NONE, preload.getAuthType()); }