@Override
    public KeyValueIterator<K, V> range(final K from,
                                        final K to) {
        final byte[] serFrom = from == null ? null : serdes.rawKey(from);
        final byte[] serTo = to == null ? null : serdes.rawKey(to);
        return new MeteredKeyValueIterator(
            wrapped().range(Bytes.wrap(serFrom), Bytes.wrap(serTo)),
            rangeSensor
        );
    }
@Test
    public void shouldThrowNullPointerOnRangeIfToIsNull() {
        setUpWithoutContext();
        assertThrows(NullPointerException.class, () -> metered.range("from", null));
    }