}
@Test
public void testRuntimeClassName() throws Exception {
generator = new OfflineInstrumentationAccessGenerator();
MethodRecorder actual = new MethodRecorder();
generator.generateDataAccessor(987654321, "foo/Bar", 17,
actual.getVisitor());
MethodRecorder expected = new MethodRecorder();
expected.getVisitor().visitLdcInsn(Long.valueOf(987654321));
expected.getVisitor().visitLdcInsn("foo/Bar");
expected.getVisitor().visitIntInsn(Opcodes.BIPUSH, 17);
String rtname = JaCoCo.RUNTIMEPACKAGE.replace('.', '/') + "/Offline";
expected.getVisitor().visitMethodInsn(Opcodes.INVOKESTATIC, rtname,
"getProbes", "(JLjava/lang/String;I)[Z", false);
assertEquals(expected, actual);
}