TupleHelpers { public static boolean isTickTuple(Tuple tuple) { return tuple.getSourceComponent().equals(Constants.SYSTEM_COMPONENT_ID) && tuple.getSourceStreamId().equals( Constants.SYSTEM_TICK_STREAM_ID); } private  TupleHelpers(); static boolean isTickTuple(Tuple tuple);  }
@Test public void testIsTickTuple() { assertThat(TupleHelpers.isTickTuple(MockTupleHelpers.mockTickTuple())).isTrue(); assertThat(TupleHelpers.isTickTuple(MockTupleHelpers.mockAnyTuple())).isFalse(); }