FstSerialization implements Serialization { @Override public ObjectInput deserialize(URL url, InputStream is) throws IOException { return new FstObjectInput(is); }  @Override byte getContentTypeId(); @Override String getContentType(); @Override ObjectOutput serialize(URL url, OutputStream out); @Override ObjectInput deserialize(URL url, InputStream is);  }
@Test public void testDeserialize() throws IOException { ObjectInput objectInput = fstSerialization.deserialize(null, mock(InputStream.class)); assertThat(objectInput, Matchers.<ObjectInput>instanceOf(FstObjectInput.class)); }