CodeCoverageStore { public static int registerClass(final String className) { final int id = nextId(); return id; } private  CodeCoverageStore(); static void init(final InvokeReceiver invokeQueue); static void visitSingleProbe(final int classId, final int probe); static void visitProbes(final int classId, final int offset,
      final boolean[] probes); static void visitProbes(final int classId, final int offset,
      final boolean p0); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6, final boolean p7); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6, final boolean p7,
      final boolean p8); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6, final boolean p7,
      final boolean p8, final boolean p9); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6, final boolean p7,
      final boolean p8, final boolean p9, final boolean p10); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6, final boolean p7,
      final boolean p8, final boolean p9, final boolean p10, final boolean p11); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6, final boolean p7,
      final boolean p8, final boolean p9, final boolean p10, final boolean p11,
      final boolean p12); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6, final boolean p7,
      final boolean p8, final boolean p9, final boolean p10, final boolean p11,
      final boolean p12, final boolean p13); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6, final boolean p7,
      final boolean p8, final boolean p9, final boolean p10, final boolean p11,
      final boolean p12, final boolean p13, final boolean p14); static synchronized void reset(); static synchronized Collection<Long> getHits(); static int registerClass(final String className); static void registerMethod(final int clazz, final String methodName,
      final String methodDesc, final int firstProbe, final int lastProbe); static int decodeClassId(final long value); static int decodeLineId(final long value); static long encode(final int classId, final int line); static void registerClassProbes(final int classId, int probeCount); static void resetAllStaticState(); static final String CLASS_NAME; static final String PROBE_METHOD_NAME; }
@Test public void shouldGenerateNewClassIdForEachClass() { final int id = CodeCoverageStore.registerClass("Foo"); final int id2 = CodeCoverageStore.registerClass("Bar"); assertFalse(id == id2); }