public boolean isXML() {
        return "xml".equals(getFormat());
    }
@Test
    public void defaultsToXml() {
        JMXEndpoint ep = context.getEndpoint("jmx:platform?objectDomain=FooDomain&objectName=theObjectName", JMXEndpoint.class);
        assertTrue(ep.isXML());
    }