@Test(expected = SerializationException.class)
public void testCannotRoundtripBytes() throws Throwable {
try {
byte[] expected = new byte[] {1,2,3,4,5};
AbstractSerializer ser = NumericSerializer.serializerFor(SimpleNumber.class);
byte[] actual = (byte[])ser.fromByteBuffer(ser.toByteBuffer(expected));
Assert.assertArrayEquals(expected, actual);
} catch (RuntimeException ex) {
throw ex.getCause();
}
}