@Test
public void testEncodeToken() throws Exception {

  byte[] bytes = "hello tokenauth".getBytes();
  String encodeString = TokenUtils.encodeToken(bytes);
  byte[] decodeBytes = TokenUtils.decodeToken(encodeString);
  assertEquals(new String(decodeBytes, 0, decodeBytes.length), "hello tokenauth");
}