It seems there is a very silly mistake somewhere as the following hello-world program is not working for me.
import com.google.common.io.BaseEncoding;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
String hello = "hello";
junit.framework.Assert.assertEquals(
hello.getBytes(),
BaseEncoding.base64().decode(
BaseEncoding.base64().encode(hello.getBytes())
)
);
I even tried hello.getBytes("ISO-8859-1")
What am I missing?