### Question:
Utils { protected static String roundToTickSize(BigDecimal pDecimal, String tickSize) { int precision = tickSize.indexOf('1') - 1; return priceFmt.format(pDecimal.setScale(precision, RoundingMode.FLOOR)); } private  Utils(); static String getSymbol(String pSymbol); static String getSymbol1(String pSymbol); static String getSymbol2(String pSymbol); static BigDecimal parseDecimal(String pString); static String formatDecimal(BigDecimal pDecimal); static String formatPrice(BigDecimal pDecimal, String pSymbol, ExchangeInfo pExchangeInfo); static BigDecimal scalePrice(BigDecimal pDecimal, String pSymbol, ExchangeInfo pExchangeInfo); static String formatQuantity(BigDecimal pQuantity, String pSymbol, ExchangeInfo pExchangeInfo); static BigDecimal scaleQuantity(BigDecimal pDecimal, String pSymbol, ExchangeInfo pExchangeInfo); static void sleep(long pMillis); static String iconUrl(String pSymbol); static String formatEnum(Enum pEnum); static int getQuantityScale(String pSymbol, ExchangeInfo pExchangeInfo); static int getPriceScale(String pSymbol, ExchangeInfo pExchangeInfo);  }### Answer:
@Test public void testRoundToTickSize() { assertEquals("0.12345", Utils.roundToTickSize(BigDecimal.valueOf(0.123456789d), "0.00001")); assertEquals("0.12345", Utils.roundToTickSize(BigDecimal.valueOf(0.12345111d), "0.00001")); assertEquals("0.123", Utils.roundToTickSize(BigDecimal.valueOf(0.12345111d), "0.001")); }