SearchUtils { public static final String padInt(Number num, Padding padding) { return padding.getFormat().format(num); } private  SearchUtils(); static final String padInt(Number num, Padding padding); static final String formatDate(Date d); static final String makeCompoundField(String delimiter, String... term); static final Query createLuceneQuery(SearchQuery searchQuery); static final Query createLuceneQuery(Operator operator, SearchQuery searchQuery); static final Query createLuceneQuery(Operator operator, CompositeSearchQuery query); static final Sort createLuceneSort(SearchQuery searchQuery);  }
@Test public void testPadInt_1() throws Exception { Number num = new Byte((byte) 1); SearchUtils.Padding padding = SearchUtils.Padding.EIGHT; String result = SearchUtils.padInt(num, padding); assertEquals("00000001", result); }