FormatUtil { public static String formatError(int errorCode) { return String.format(HEX_ERROR, errorCode); } private  FormatUtil(); static String formatBytes(long bytes); static String formatBytesDecimal(long bytes); static String formatHertz(long hertz); static String formatValue(long value, String unit); static String formatElapsedSecs(long secs); static float round(float d, int decimalPlace); static long getUnsignedInt(int x); static String toUnsignedString(int i); static String toUnsignedString(long l); static String formatError(int errorCode); static final String HEX_ERROR; }
@Test public void testFormatError() { assertEquals("0xB66A00A8", FormatUtil.formatError(-1234567000)); }