@Test
void onToken() throws Exception {

    Token token1 = getToken("0.0.3", "0.0.5");
    Token token2 = getToken("0.0.7", "0.0.11");
    // when
    sqlEntityListener.onToken(token1);
    sqlEntityListener.onToken(token2);
    completeFileAndCommit();
    // then
    assertEquals(2, tokenRepository.count());
    assertExistsAndEquals(tokenRepository, token1, token1.getTokenId());
    assertExistsAndEquals(tokenRepository, token2, token2.getTokenId());
}