### Question:
JsonParser { @Nonnull public JsonParser setAlwaysUseBigNumber (final boolean bAlwaysUseBigNumber) { m_bAlwaysUseBigNumber = bAlwaysUseBigNumber; return this; } JsonParser(@Nonnull @WillNotClose final Reader aReader, @Nonnull final IJsonParserHandler aCallback); boolean isTrackPosition(); @Nonnull JsonParser setTrackPosition(final boolean bTrackPosition); @Nonnegative int getTabSize(); @Nonnull JsonParser setTabSize(@Nonnegative final int nTabSize); boolean isAlwaysUseBigNumber(); @Nonnull JsonParser setAlwaysUseBigNumber(final boolean bAlwaysUseBigNumber); boolean isRequireStringQuotes(); @Nonnull JsonParser setRequireStringQuotes(final boolean bRequireStringQuotes); boolean isAllowSpecialCharsInStrings(); @Nonnull JsonParser setAllowSpecialCharsInStrings(final boolean bAllowSpecialCharsInStrings); boolean isCheckForEOI(); @Nonnull JsonParser setCheckForEOI(final boolean bCheckForEOI); @Nonnegative int getLineNumber(); @Nonnegative int getColumn(); @Nonnull EEOI parse(); static final int EOI; static final boolean DEFAULT_TRACK_POSITION; static final int DEFAULT_TAB_SIZE; static final boolean DEFAULT_ALWAYS_USE_BIG_NUMBER; static final boolean DEFAULT_REQUIRE_STRING_QUOTES; static final boolean DEFAULT_ALLOW_SPECIAL_CHARS_IN_STRING; static final boolean DEFAULT_CHECK_FOR_EOI; }### Answer:
@Test public void testAlwaysUseBigNumberInt () { final String sJson = "5"; assertEquals (Integer.class, ((IJsonValue) _read (sJson, null)).getValueClass ()); assertEquals (BigInteger.class, ((IJsonValue) _read (sJson, aParser -> aParser.setAlwaysUseBigNumber (true))).getValueClass ()); }
@Test public void testAlwaysUseBigNumberDecimal () { final String sJson = "5.1"; assertEquals (Double.class, ((IJsonValue) _read (sJson, null)).getValueClass ()); assertEquals (BigDecimal.class, ((IJsonValue) _read (sJson, aParser -> aParser.setAlwaysUseBigNumber (true))).getValueClass ()); }