@Test
public void testOnUpdate() {

    final Settings mockSettings = new MockSettings();
    mockSchemaResolver.refresh();
    expectLastCall();
    EasyMockUnitils.replay();
    presenter.onUpdate(mockSettings);
    final XmlSchemaDTO[] schemas = mockSettings.getXmlSchemas();
    assertNotNull("Returned schema array is null.", schemas);
    assertEquals("Incorrect size of schema array", 1, schemas.length);
    assertEquals("Unexpected location of the schema.", SAMPLE_LOCATION,
            schemas[0].getLocation());
}