@Test
public void testEncodeDoesNotBreakLine() {


    String info = USERNAME + ":" + PASSWORD;
    String formerToken = "Basic "
            + org.nuxeo.client.util.Base64.encode(info, org.nuxeo.client.util.Base64.DONT_BREAK_LINES);
    String token = "Basic " + ENCODER.encodeToString(info.getBytes(UTF_8));
    assertEquals(token, formerToken);
}