@Test
public void testEncodeInvalidData() {

    try {
        YBase64.encode(null);
        fail();
    } catch (NullPointerException ignored) {
    }
    
    byte[] data = new byte[0];
    assertNotNull(YBase64.encode(data));
}