### Question:
Utils { public static String formatQuantity(BigDecimal pQuantity, String pSymbol, ExchangeInfo pExchangeInfo) { SymbolInfo symbolInfo = pExchangeInfo.getSymbolInfo(pSymbol); String tickSize = symbolInfo.getSymbolFilter(FilterType.LOT_SIZE).getStepSize(); return roundToTickSize(pQuantity, tickSize); } 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 testFormatQuantity() { ExchangeInfo ex = new ExchangeInfo(); List<SymbolInfo> symbols = new ArrayList<>(); SymbolInfo si = new SymbolInfo(); si.setSymbol("NEOETH"); symbols.add(si); ex.setSymbols(symbols); SymbolFilter lotFilter = new SymbolFilter(); lotFilter.setFilterType(FilterType.LOT_SIZE); lotFilter.setStepSize("0.001"); List<SymbolFilter> filters = new ArrayList<>(); filters.add(lotFilter); si.setFilters(filters); assertEquals("Quantity falsch", "1.023", Utils.formatQuantity(BigDecimal.valueOf(1.02345), "NEOETH", ex)); assertEquals("Quantity scale falsch", 3, Utils.getQuantityScale("NEOETH", ex)); int quantityScale = 3; assertEquals("Quantity step falsch", "0.001", Utils.formatQuantity(BigDecimal.valueOf(Math.pow(10.0, -quantityScale)), "NEOETH", ex)); }