@Test public void testCustomParser() { CustomParser parser = new CustomParser(new Gson()); builder.setParser(parser).build(); assertThat(builder.getParser()).isInstanceOf(CustomParser.class); }
@Test public void testDefaultParser() { builder.build(); assertThat(builder.getParser()).isInstanceOf(GsonParser.class); }