LoraUtils { public static String convertToHexString(final byte[] data) { Objects.requireNonNull(data); return BaseEncoding.base16().encode(data); } private  LoraUtils(); static Optional<T> getChildObject(final JsonObject parent, final String propertyName, final Class<T> expectedType); static Location newLocationFromString(final Optional<String> longitude, final Optional<String> latitude, final Optional<String> altitude); static Location newLocation(final Optional<Double> longitude, final Optional<Double> latitude, final Optional<Double> altitude); static String convertFromBase64ToHex(final String base64); static String convertToHexString(final byte[] data);  }
@Test public void convertToHexString() { final String hexResult = LoraUtils.convertToHexString(BUMLUX_AS_BYTE_ARRAY); assertEquals(BUMLUX_AS_HEX, hexResult); }