@Override
    public DataSerializableFactory createFactory() {
        return new Factory();
    }
@Test
    public void testExistingTypes() {
        MetricsDataSerializerHook hook = new MetricsDataSerializerHook();
        IdentifiedDataSerializable readMetricsOperation = hook.createFactory()
                                                              .create(MetricsDataSerializerHook.READ_METRICS);
        assertTrue(readMetricsOperation instanceof ReadMetricsOperation);
    }