@Test
public void testGetSelectMatchupSql_history() {

    final String matchupSql = JpaMatchupStorage.getSelectMatchupSql("history");
    assertThat(matchupSql, containsString("and not exists ( select o.id from mm_coincidence c, mm_observation o where c.matchup_id = m.id and c.observation_id = o.id and o.sensor = ?1 ) "));
}