@Test
public void testResetForMeteringMetric() {
MeteringMetric mock = createMock( MeteringMetric.class );
UnitRoundingMeteringMetric rounder = new UnitRoundingMeteringMetric( TimeUnit.MINUTES, mock );
final BasicMeteringMetric snapshot = new BasicMeteringMetric( "test" );
expect( mock.reset() ).andReturn( snapshot );
replay( mock );
assertTrue( rounder.reset().getClass().isAssignableFrom( UnitRoundingMeteringMetric.class ) );
verify( mock );
}