public void testBase64() {
    System.out.println("** testBase64 **");
    CycList request = new CycList();
    request.add(CycObjectFactory.makeCycSymbol("list"));
    request.add(":none");
    request.add(CycObjectFactory.makeCycSymbol(":none"));
    String encodedRequest = null;
    Object response = null;
    Base64 base64 = new Base64();
    try {
      encodedRequest = base64.encodeCycObject(request, 0);
      response = base64.decodeCycObject(encodedRequest, 0);
    } catch (IOException e) {
      e.printStackTrace();
      Assert.fail(e.getMessage());
    }
    assertNotNull(response);
    assertTrue(response instanceof CycList);
    assertEquals(request, (CycList) response);

    request = new CycList();
    request.add(CycObjectFactory.makeCycSymbol("A"));
    request.setDottedElement(CycObjectFactory.makeCycSymbol("B"));
    encodedRequest = null;
    response = null;
    try {
      encodedRequest = base64.encodeCycObject(request, 0);
      response = base64.decodeCycObject(encodedRequest, 0);
    } catch (IOException e) {
      e.printStackTrace();
      Assert.fail(e.getMessage());
    }
    assertNotNull(response);
    assertTrue(response instanceof CycList);
    assertEquals(request, (CycList) response);
    System.out.println("** testBase64 OK **");
  }