### Question:
BulldogUtil { public static void sleepMs(int ms) { try { Thread.sleep(ms); } catch(Exception ex) { } }  static void sleepMs(int ms); static void sleepNs(int ns); static String bytesToString(byte[] bytes, String encoding); static String bytesToString(byte[] bytes); @SuppressWarnings("resource") static String convertStreamToString(java.io.InputStream is); static String readFileAsString(String path); static boolean isStringNumeric(String str); static final int getUnsignedByte(byte b);  }### Answer:
@Test public void testSleep() { long start = System.currentTimeMillis(); BulldogUtil.sleepMs(10); long delta = System.currentTimeMillis() - start; TestCase.assertEquals(10, delta, 5); start = System.currentTimeMillis(); BulldogUtil.sleepMs(1); delta = System.currentTimeMillis() - start; TestCase.assertEquals(1, delta, 5); start = System.currentTimeMillis(); BulldogUtil.sleepMs(100); delta = System.currentTimeMillis() - start; TestCase.assertEquals(100, delta, 5); start = System.currentTimeMillis(); BulldogUtil.sleepMs(500); delta = System.currentTimeMillis() - start; TestCase.assertEquals(500, delta, 5); start = System.currentTimeMillis(); BulldogUtil.sleepMs(25); delta = System.currentTimeMillis() - start; TestCase.assertEquals(25, delta, 5); }