### Question:
ResumptionTokenHelper { public static ResumptionToken decodeResumptionToken(String base64EncodedToken) { try { String decoded = new String(Base64.getUrlDecoder().decode(base64EncodedToken), StandardCharsets.UTF_8); String[] parts = tokenize(decoded); Date expirationDate = new Date(Long.valueOf(parts[EXPIRATION_TIME_INDEX])); long cursor = Long.parseLong(parts[CURSOR_INDEX]); long completeListSize = Long.parseLong(parts[COMPLETE_LIST_SIZE_INDEX]); return new ResumptionToken(decoded, completeListSize, expirationDate, cursor); } catch (Exception e) { throw new IllegalArgumentException(); } } private  ResumptionTokenHelper(); static ResumptionToken createResumptionToken(String from,
                                                        String until,
                                                        String set,
                                                        String format,
                                                        Date expirationDate,
                                                        long completeListSize,
                                                        long cursor,
                                                        String nextCursorMark); static ResumptionToken createResumptionToken(Date expirationDate,
                                                        long completeListSize,
                                                        long cursor); static ResumptionToken decodeResumptionToken(String base64EncodedToken); static String getFrom(String token); static String getUntil(String token); static String getSet(String token); static String getFormat(String token); static Date getExpirationDate(String token); static long getCompleteListSize(String token); static long getCursor(String token); static String getCursorMark(String token);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testDecodeIncorrectToken() { ResumptionTokenHelper.decodeResumptionToken(INCORRECT_TOKEN); }