String line = "Username=\"admin\", "
+ "PasswordDigest=\"nP4Vzuz70bhQk0FI3jsXq3CubIw=\", "
+ "Nonce=\"OWYxM2VjNjA0NjQzOTZjMg==\", "
+ "Created=\"2011-01-01T00:00:00Z\"";
try {
WSSE wsse = new WSSE(line);
assertEquals("admin", wsse.getUsername());
assertEquals("nP4Vzuz70bhQk0FI3jsXq3CubIw=", wsse.getPasswordDigest());
assertEquals("OWYxM2VjNjA0NjQzOTZjMg==", wsse.getNonce());
AuthUser user = authComponent.getAuthUser(wsse.getUsername(), context);
assertEquals("admin", user.getAuthUsername());
assertEquals("pass", user.getAuthPassword());
assertEquals("nP4Vzuz70bhQk0FI3jsXq3CubIw=", auth.getPasswordDigest(wsse, user));