@Test
public void testEncode() {

    assertArrayEquals(
            new byte[] { (byte) 0xc2, (byte) 0xa1 },
            StringObservable.encode(Observable.just("\u00A1"), "UTF-8").toBlockingObservable().single());
}