@Test
public void testSetAdminPin() throws Exception {

    String newPin = "hello world";
    neo.setAdminPin(adminPin, newPin);
    try {
        neo.unlockAdmin(adminPin);
        fail("Unlocked with wrong PIN!");
    } catch (IncorrectPINException e) {
        assertEquals(5, e.getTriesRemaining());
        assertEquals(PinMode.ADMIN, e.getPinMode());
        assertFalse(neo.isAdminUnlocked());
    }
    neo.unlockAdmin(newPin);
    neo.setAdminPin(newPin, adminPin);
}