public WireMockRule wireMockRule = new WireMockRule(wireMockConfig().port(8089).notifier(new ConsoleNotifier(true)));
@Test
public void requestReceivedByListener() {
final List<String> urls = new ArrayList<String>();
wireMockRule.addMockServiceRequestListener(new RequestListener() {
@Override
public void requestReceived(Request request, Response response) {
urls.add(request.getUrl());
}
});