public void testGetObject() throws Exception {
String configuration = "classpath:org/jmxtrans/embedded/jmxtrans-factory-test.json";
EmbeddedJmxTransFactory factory = new EmbeddedJmxTransFactory(new DefaultResourceLoader());
factory.setConfigurationUrl(configuration);
EmbeddedJmxTrans embeddedJmxTrans = factory.getObject();
assertThat(embeddedJmxTrans, notNullValue());
assertThat(embeddedJmxTrans.getQueries().size(), is(8));
assertThat(embeddedJmxTrans.getOutputWriters().size(), is(1));
embeddedJmxTrans.stop();
}