}
@Test
public void testPublishObjectViaGetterCollectorWithDispatch() throws Exception {
SpyProcessor col = new GetterPresentingCollector(mBeanServerRegistry, "test", "test:name=TestObj", "testAttr", "meh", "C2", "length()");
record.put("C0", 1L);
record.put("C1", 1L);
record.put("C2", "oja!");
record.put(".STAGES", (Integer) record.get(".STAGES") | (1 << SpyLib.ON_SUBMIT));
record.put(".STAGE", SpyLib.ON_SUBMIT);
col.process(record);
Object obj = getAttr(testMbs, "test:name=TestObj", "testAttr");
assertEquals("getter should return length of string passed via spy record", 4, obj);
}