@Test
public final void testBuildStubDescriptorShouldCallStubConfigurationAccess() throws Exception {

    //GIVEN
    given(xmlDocumentBuilder.buildDocument(inputStream, schema)).willReturn(document);
    given(descriptorBuilder.parse(document)).willReturn(stubDescriptor);
    //WHEN
    underTest.buildStubDescriptor(inputStream);
    //THEN
    verify(configurationAccess).setProperties();
}