@Test
public void whenGetResultsForRegistrationItShouldNotScoreRunsBeyondMaxPerRegistration() {

    when(event.getMaxRunsPerRegistration()).thenReturn(1);
    allRunsWithRegistration.addAll(Arrays.asList(mock(Run.class), mock(Run.class)));
    ScoredRun expectedScoredRun = mock(ScoredRun.class);
    when(runScoringInteractor.score(any())).thenReturn(expectedScoredRun);
    GetRegistrationResultsPayload actual = resultsService.getResultsFor(registration);
    assertThat(actual.getScoredRuns()).hasSize(1);
    assertThat(actual.getScore()).isSameAs(expectedScoredRun);
    verify(runScoringInteractor, Mockito.times(1)).score(any(Run.class));
}