@Test
public void testRecorderFactoryDyna() throws InterruptedException, IOException,
        InstanceNotFoundException, MBeanException, AttributeNotFoundException, ReflectionException {

  CloseableMeasurementRecorderSource rec = RecorderFactory.createScalableQuantizedRecorderSource2(RsTest.class,
          "ms", 100000000, 10, 0, 6, 10);
  MeasurementRecorder recorder = rec.getRecorder("test");
  recorder.record(1);
  int sum = 1;
  for (int i = 0; i < 10; i++) {
    recorder.record(i);
    sum += i;
  }
  String ret3 = (String) Client.getAttribute("service:jmx:rmi:///jndi/rmi://:9999/jmxrmi",
          "org.spf4j.perf.recorders", "class_" + RecorderFactoryTest.class.getName() + "_RsTest",
          "measurementsAsString");
  Assert.assertThat(ret3, Matchers.containsString("test," + sum + "," + 11));
  rec.close();
}