CollectorFactory { public CollectorType getType() { return type; } CollectorFactory(
      CollectorType type,
      TimeUtils time,
      KafkaServer server,
      Properties serverConfiguration,
      Runtime serverRuntime
  ); Collector getCollector(); CollectorType getType();  }
@Test public void testBasicType() { TimeUtils time = new TimeUtils(); CollectorFactory factory = new CollectorFactory(CollectorType.BASIC, time, null, null, null); CollectorType type = factory.getType(); assertThat(type).isEqualTo(CollectorType.BASIC); }