@Test
public void testOnClick() {

    final TestContext context = new TestContext(application);
    final TextView textView = new TextView(context);
    final LinkSpan linkSpan = new LinkSpan("test_id");
    linkSpan.onClick(textView);
    assertSame("Clicked LinkSpan should be passed to setup", linkSpan, context.clickedSpan);
}