### Question:
RandomUtils { public static final byte[] generateRandomBytesOfLength(final int length) { if (length <= 0) { throw new IllegalArgumentException("length must be > 0"); } byte[] result = new byte[length]; SecureRandom random = new SecureRandom(); random.nextBytes(result); return result; }  static final byte[] generateRandomBytesOfLength(final int length); static final char[] generateRandomChars(final int length);  }### Answer:
@Test public void testGenerateRandomBytesOfLength() { int len = 100; byte[] actual = RandomUtils.generateRandomBytesOfLength(len); Assert.assertEquals(len, actual.length); }