private Tuple createTuple(BasicDBObject dbObject) {
Map<String,String> metricCriteria = new HashMap<>();
metricCriteria.put("one", "1");
metricCriteria.put("two", "2");
Tuple tuple = mock(TupleImpl.class);
when(tuple.getStringByField("metricAccount")).thenReturn("JuggaloaderTimeBaseTest-"+dbObject.getString("testFunction"));
when(tuple.getStringByField("metricName")).thenReturn(MetricName.TEST_STREAM.toString());
when(tuple.getStringByField("metricType")).thenReturn("ABSOLUTE");
when(tuple.getLongByField("metricTimestamp")).thenReturn(getMetricTimestamp());
when(tuple.getFloatByField("metricValue")).thenReturn(Float.parseFloat(dbObject.getString("y")));
when(tuple.getValueByField("metaData")).thenReturn(new HashMap<String,Object>());
when(tuple.getValueByField("metricCriteria")).thenReturn(metricCriteria);
return tuple;
}