@Test
public void testReset() {
TimingMetric mock = createMock( TimingMetric.class );
UnitRoundingTimingMetric rounder = new UnitRoundingTimingMetric( TimeUnit.MINUTES, TimeUnit.MILLISECONDS, mock );
final BasicTimingMetric snapshot = new BasicTimingMetric( "test" );
expect( mock.reset() ).andReturn( snapshot );
replay( mock );
assertTrue( rounder.reset().getClass().isAssignableFrom( UnitRoundingTimingMetric.class ) );
verify( mock );
}