### Question:
Handles { public static int accessToTag(int access, boolean itf) { if (Flags.hasFlag(access, ACC_STATIC)) { return H_INVOKESTATIC; } if (Flags.hasFlag(access, ACC_PRIVATE)) { return H_INVOKESPECIAL; } if (itf) { return H_INVOKEINTERFACE; } else { return H_INVOKEVIRTUAL; } }  static int getOpcode(Handle handle); static int opcodeToTag(int opcode); static int accessToTag(int access, boolean itf);  }### Answer:
@Test public void testAccessToTag() { assertThat(accessToTag(ACC_STATIC, true), is(H_INVOKESTATIC)); assertThat(accessToTag(ACC_STATIC, false), is(H_INVOKESTATIC)); assertThat(accessToTag(ACC_PRIVATE, true), is(H_INVOKESPECIAL)); assertThat(accessToTag(ACC_PRIVATE, false), is(H_INVOKESPECIAL)); assertThat(accessToTag(ACC_PUBLIC, true), is(H_INVOKEINTERFACE)); assertThat(accessToTag(ACC_PUBLIC, false), is(H_INVOKEVIRTUAL)); }