@Test
public void testCreateStubOfInterceptorA() throws StubConfigurationException {

    //given, when
    ConfigurationParameter[] conditionParameters = new ConfigurationParameter[1];
    conditionParameters[0] = new ConfigurationParameter("somewhereinheader");
    ConfigurationParameterArray configurationParameterArray = new ConfigurationParameterArray(conditionParameters);
    wilmaStub = new WilmaStubBuilder()
            .forRequestsLike().textInUrl("/blah")
            .willRespondWith().xmlFileResponse("filename").withStatus(200)
            .addInterceptor("interceptorName", "interceptorClass")
            .addInterceptor("interceptorName", "interceptorClass", configurationParameterArray)
            .build();
    //then
    Assert.assertTrue(wilmaStub.toString().contains("application/xml"), "Bad mime type was set.");
}