@Test
public void json_is_generated_when_serialization_succeeds() throws Exception {

    TestEntity entity = new TestEntity();
    entity.val = "Test";
    Optional<byte[]> resultBytes = JsonUtilities.convertJsonToBytes(entity);
    Assert.assertEquals(true, resultBytes.isPresent());
    Assert.assertEquals("{\"val\":\"Test\"}", new String(resultBytes.get()));
}