@Test public void metadataMarshaller_invalid() { try { metadataMarshaller.parseBytes(new byte[] {-127}); fail("Expected exception"); } catch (Exception ex) { assertTrue(ex.getCause() instanceof TException); } }
@Test public void metadataMarshaller_roundtrip() { Message m = new Message(); m.i = 2; assertEquals(m, metadataMarshaller.parseBytes(metadataMarshaller.toBytes(m))); }