}
@Test
public void testSpyInstrumentConvenienceFn1() {
SpyDefinition sdef = spyLib.instrument("test", "test:type=MyStats", "stats", "${0}");
assertEquals(2, sdef.getProcessors(SpyLib.ON_SUBMIT).size());
Object coll = sdef.getProcessors(SpyLib.ON_SUBMIT).get(1);
assertEquals("${A0}", ObjectInspector.getField(coll, "statTemplate"));
assertEquals(2, sdef.getProbes(SpyLib.ON_ENTER).size());
assertEquals("A0", sdef.getProbes(SpyLib.ON_ENTER).get(0).getDstField());
}