### Question:
PosDataCode implements Loggeable { public void unsetReadingMethods(ReadingMethod ... methods ) { setReadingMethods(false, methods); } PosDataCode();  PosDataCode(
            int readingMethod,
            int verificationMethod,
            int posEnvironment,
            int securityCharacteristic); private  PosDataCode(byte[] b); boolean hasReadingMethods(int readingMethods); boolean hasReadingMethod(ReadingMethod method); boolean hasVerificationMethods(int verificationMethods); boolean hasVerificationMethod(VerificationMethod method); boolean hasPosEnvironments(int posEnvironments); boolean hasPosEnvironment(POSEnvironment method); boolean hasSecurityCharacteristics(int securityCharacteristics); boolean hasSecurityCharacteristic(SecurityCharacteristic characteristic); byte[] getBytes(); boolean isEMV(); boolean isManualEntry(); boolean isSwiped(); boolean isRecurring(); boolean isECommerce(); String toString(); static PosDataCode valueOf(byte[] b); void dump(PrintStream p, String indent); void setFlags(boolean value, Flag... flags); void setReadingMethods(boolean value, ReadingMethod ... methods ); void unsetReadingMethods(ReadingMethod ... methods ); void setReadingMethods(ReadingMethod ... methods ); void setVerificationMethods(boolean value, VerificationMethod ... methods ); void unsetVerificationMethods(VerificationMethod ... methods); void setVerificationMethods(VerificationMethod ... methods); void setPOSEnvironments(boolean value, POSEnvironment ... envs); void unsetPOSEnvironments(POSEnvironment ... envs); void setPOSEnvironments(POSEnvironment ... envs); void setSecurityCharacteristics(boolean value, SecurityCharacteristic ... securityCharacteristics); void unsetSecurityCharacteristics(SecurityCharacteristic ... envs); void setSecurityCharacteristics(SecurityCharacteristic ... envs);  }### Answer:
@Test public void unsetReadingMethods() { pdc.setReadingMethods(CONTACTLESS, PHYSICAL, BARCODE); pdc.unsetReadingMethods(BARCODE); assertFalse(pdc.hasReadingMethods(CONTACTLESS.intValue() | PHYSICAL.intValue() | BARCODE.intValue()), "Reding method BARCODE should not be present"); assertTrue(pdc.hasReadingMethods(CONTACTLESS.intValue() | PHYSICAL.intValue()), "Reding methods CONTACTLESS and PHYSICAL should be present"); }