@Test
public void testStatusResourceResponse()
throws ParseException
{
StatusResourceResponse resourceResponse = new StatusResourceResponse();
StatusResource status = new StatusResource();
NexusAuthenticationClientPermissions perms = new NexusAuthenticationClientPermissions();
ClientPermission permission = new ClientPermission();
permission.setId("id");
permission.setValue(5);
perms.addPermission(permission);
perms.setLoggedIn(true);
perms.setLoggedInUsername("fred");
perms.setLoggedInUserSource("source");
status.setClientPermissions(perms);
status.setConfigurationUpgraded(true);
status.setErrorCause("errorCause");
status.setFirstStart(true);
status.setInitializedAt(this.dateFormat.parse("01/01/2001"));
status.setInstanceUpgraded(true);
status.setLastConfigChange(this.dateFormat.parse("01/01/2002"));
status.setOperationMode("operationMode");
status.setStartedAt(this.dateFormat.parse("01/01/2003"));
status.setState("STATE");
status.setVersion("version");
status.setApiVersion("apiversion");
status.setAppName("appname");
status.setBaseUrl("baseurl");
status.setEditionLong("long edition name");
status.setEditionShort("short");
status.setAttributionsURL("http://my.attributions.com/url");
status.setPurchaseURL("http://my.store.com/url");
status.setUserLicenseURL("http://my.userlicense.com/url");
status.setFormattedAppName("formatted");
StatusConfigurationValidationResponse validation = new StatusConfigurationValidationResponse();
validation.setModified(true);
validation.setValid(true);
validation.addValidationError("error1");
validation.addValidationError("error2");
validation.addValidationWarning("warning1");
validation.addValidationWarning("warning2");
status.setConfigurationValidationResponse(validation);
resourceResponse.setData(status);
this.marshalUnmarchalThenCompare(resourceResponse, this.xstreamXML); // FIXME: JSON READER CANNOT PARSE DATES
// CORRECTLY.
this.validateXmlHasNoPackageNames(resourceResponse);
}