@Test
public void factoryCreatesSpanWithCorrectClickListener() {

    URLSpan urlSpan = factory.createSpanFor(WEB_URL);
    urlSpan.onClick(any(View.class));
    verify(mockListener).onClick(WEB_URL);
}