LoraUtils { public static String convertFromBase64ToHex(final String base64) { Objects.requireNonNull(base64); try { return convertToHexString(Base64.getDecoder().decode(base64)); } catch (final IllegalArgumentException e) { throw new LoraProviderMalformedPayloadException("cannot decode Base64 data", e); } } 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 convertFromBase64ToHex() { final String hexResult = LoraUtils.convertFromBase64ToHex(BUMLUX_AS_BASE64); assertEquals(BUMLUX_AS_HEX, hexResult); }