verify(sourceCallbackMock, times(1)).onSource(Mockito.any(Source.class));
}
@Test
public void testOnSourceWithUniqueRelevantLines() throws Exception {
Source s1 = createSource("Foo.java", "{\n void();\n}\n", 2);
Source s2 = createSource("Foo.java", "{\n void();\n}\n", 1, 3);
UniqueSourceCallback cb = createUniqueSourceCallback();
cb.onSource(s1);
cb.onSource(s2);
verify(sourceCallbackMock, times(2)).onSource(Mockito.any(Source.class));