SingleModelBuilder implements SyncModelBuilder { @Override public <I extends Serializable, O extends Serializable, M extends Model<I, O>> M build(ModelReader reader, ModelParser<I, O, M> parser) { return parser.parse(reader.read()); }  @Override M build(ModelReader reader,
        ModelParser<I, O, M> parser);  }
@Test public void testBuild() { SyncModelBuilder mdlBuilder = new SingleModelBuilder(); Model<Integer, Integer> infMdl = mdlBuilder.build( ModelBuilderTestUtil.getReader(), ModelBuilderTestUtil.getParser() ); for (int i = 0; i < 100; i++) assertEquals(Integer.valueOf(i), infMdl.predict(i)); }