@Test
public void testGet_conditionNoPattern() throws ParseException {

    final String sql = "select m.id from mm_matchup m, mm_observation r where r.referenceflag = 5 and r.time >= ?1 and r.time < ?2 and r.id = m.refobs_id order by r.time, r.id";
    final Date startDate = createDate("2010-06-02T00:00:00Z");
    final Date stopDate = createDate("2010-06-05T00:00:00Z");
    final String condition = "r.referenceflag = 5";
    final List<Matchup> resultList = createOneMatchupListWithId(13);
    final MatchupQueryParameter parameter = new MatchupQueryParameter();
    parameter.setStartDate(startDate);
    parameter.setStopDate(stopDate);
    parameter.setCondition(condition);
    when(query.getResultList()).thenReturn(resultList);
    when(persistenceManager.createNativeQuery(sql, Matchup.class)).thenReturn(query);
    final List<Matchup> matchups = matchupStorage.get(parameter);
    assertNotNull(matchups);
    assertEquals(1, matchups.size());
    assertEquals(13, matchups.get(0).getId());
    verify(persistenceManager, times(1)).createNativeQuery(sql, Matchup.class);
    verifyNoMoreInteractions(persistenceManager);
    verify(query, times(1)).setParameter(1, startDate);
    verify(query, times(1)).setParameter(2, stopDate);
    verify(query, times(1)).getResultList();
    verifyNoMoreInteractions(query);
}