@Test
public void organisationInfoUpdate()
throws Exception
{
OrganisationInformation oldOrganisationInformation = archivaAdministration.getOrganisationInformation();
assertNotNull( oldOrganisationInformation );
assertNull( oldOrganisationInformation.getLogoLocation() );
assertNull( oldOrganisationInformation.getName() );
assertNull( oldOrganisationInformation.getUrl() );
OrganisationInformation newOrganisationInformation = new OrganisationInformation();
newOrganisationInformation.setLogoLocation( "http://foo.com/bar.png" );
newOrganisationInformation.setName( "foo org" );
newOrganisationInformation.setUrl( "http://foo.com" );
archivaAdministration.setOrganisationInformation( newOrganisationInformation );
newOrganisationInformation = archivaAdministration.getOrganisationInformation();
assertNotNull( newOrganisationInformation );
assertEquals( "http://foo.com/bar.png", newOrganisationInformation.getLogoLocation() );
assertEquals( "foo org", newOrganisationInformation.getName() );
assertEquals( "http://foo.com", newOrganisationInformation.getUrl() );
// back to initial OrganisationInformation //MRM-1638
archivaAdministration.setOrganisationInformation( oldOrganisationInformation );
}