StandardAdapterStartUpEvent extends AdapterStartUpEvent { @Override public void setAdapter(Adapter param) throws CoreException { } StandardAdapterStartUpEvent(); @Override void setAdapter(Adapter param);  }
@Test public void testSetAdapter() throws Exception { StandardAdapterStartUpEvent evt = new StandardAdapterStartUpEvent(); Adapter adapter = new Adapter(); evt.setAdapter(adapter); }
@Test public void testMarshalledHasNoAdapter() throws Exception { StandardAdapterStartUpEvent event = new StandardAdapterStartUpEvent(); Adapter adapter = new Adapter(); event.setAdapter(adapter); AdaptrisMarshaller m = DefaultMarshaller.getDefaultMarshaller(); String s = m.marshal(event); System.out.println("Event marshalled - " + s); StandardAdapterStartUpEvent mEvent = (StandardAdapterStartUpEvent) m.unmarshal(s); System.out.println("mEvent unmarshalled - " + mEvent.toString()); }