### Question:
Acceptor { public boolean retire(final String jeton) { boolean result = false; if (this.jetonActif.keySet().contains(this.encode(jeton))) { this.jetonActif.remove(this.encode(jeton)); result = true; } return result; } private  Acceptor(); String decode(final String jeton); boolean enregistre(final String jeton); boolean retire(final String jeton); boolean accept(final String jeton); static Acceptor getInstance(); String encode(final String str);  }### Answer:
@SuppressWarnings("unchecked") @Test public void testRetire() throws Exception { final String id = "tictac"; this.acceptor.enregistre(id); final Field f = this.acceptor.getClass().getDeclaredField(this.nomChamps); f.setAccessible(true); final Map<String, String> map = (Map<String, String>) f.get(this.acceptor); assertTrue("L'identifiant n'a pas ete enregistre", map.containsValue(id)); this.acceptor.retire(id); assertFalse("L'identifiant a ete conserve", map.containsValue(id)); }