StatisticMarshaller extends AbstractMarshaller { @Override public String marshal(Object obj) throws CoreException { SerializableStatistic serializeStatistic = serializeStatistic(obj); if(serializeStatistic != null) return this.getActualMarshaller().marshal(serializeStatistic); else return null; } StatisticMarshaller(); @Override String marshal(Object obj); @Override void marshal(Object obj, Writer writer); @Override Object unmarshal(Reader reader); AdaptrisMarshaller getActualMarshaller(); void setActualMarshaller(AdaptrisMarshaller actualMarshaller);  }
@Test public void testMarshallWrongObjectNoError() throws Exception { assertNull(statisticMarshaller.marshal(new Object())); }