@Override
    public int numPartitions() {
        return numPartitions;
    }
@Test
    public void testNumPartitions() {
        TopicMetadataImpl metadata = new TopicMetadataImpl(1234);
        assertEquals(1234, metadata.numPartitions());
    }