private QueryStatistics queryStats;
private HibernateStatsResource resource;
@Before
public void setup() throws Exception {
this.context = new MockResourceContext();
this.queryStats = mock(QueryStatistics.class);
when(queryStats.getExecutionAvgTime()).thenReturn(1L);
when(queryStats.getExecutionCount()).thenReturn(2L);
when(queryStats.getExecutionMaxTime()).thenReturn(3L);