@Test
public void testMalformedQuery()
{

  @SuppressWarnings("unchecked")
  MessageDeserializerFactory qdf = new MessageDeserializerFactory(SchemaQuery.class);
  String malformed = "{\"}";
  boolean exception = false;
  try {
    qdf.deserialize(malformed);
  } catch (IOException e) {
    exception = true;
  }
  Assert.assertTrue("Resulting query should throw IOException.", exception);
}