@Test
public void testSetUserPin() throws Exception {

    String newPin = "hello world";
    neo.setUserPin(userPin, newPin);
    try {
        neo.unlockUser(userPin);
        fail("Unlocked with wrong PIN!");
    } catch (IncorrectPINException e) {
        assertEquals(5, e.getTriesRemaining());
        assertEquals(PinMode.USER, e.getPinMode());
        assertFalse(neo.isUserUnlocked());
    }
    neo.unlockUser(newPin);
    neo.setUserPin(newPin, userPin);
}