NodeDeployTask { public String base64Encode(String toEncode) { return DatatypeConverter.printBase64Binary(toEncode.getBytes()); } NodeDeployTask(TorqueNodeDeployment torqueNodeDeployment, int nodeNumber,
            TorqueNodeConfiguration nodeConfiguration, TorqueConfiguration torqueConfiguration); void execute(); String base64Encode(String toEncode);  }
@Test public void base64Encode() { String toEncode = "Hello World"; String result = nodeDeployTask.base64Encode(toEncode); assertEquals("SGVsbG8gV29ybGQ=", result); }