public void testSimpleConversionWithPackage() {
ObjectMapper objectMapper = new ObjectMapper();
MindHolderToObjectConverter holderToObject = new MindHolderToObjectConverter(objectMapper, "org.springframework.yarn.integration.ip.mind");
MindObjectToHolderConverter objectToHolder = new MindObjectToHolderConverter(objectMapper);
SimpleTestRequest request1 = new SimpleTestRequest();
MindRpcMessageHolder holder = objectToHolder.convert(request1);
assertThat(holder, notNullValue());
SimpleTestRequest request2 = (SimpleTestRequest) holderToObject.convert(holder);
assertThat(request2, notNullValue());
assertThat(request1.type, is(request2.type));
assertThat(request1.stringField, is(request2.stringField));
}