### Question:
ImageConverter { public String prepareHtmlImgSrc(byte[] avatar) { return base64Wrapper.encodeB64Bytes(avatar); } ImageConverter(String format, int imageType, int maxImageWidth, int maxImageHeight); String getFormat(); String getHtmlSrcImagePrefix(); static ImageConverter createConverter(String format, int maxImageWidth, int maxImageHeight); byte[] convertImageToByteArray(BufferedImage image); BufferedImage convertByteArrayToImage(byte[] bytes); BufferedImage resizeImage(BufferedImage image, int type); byte[] preprocessImage(BufferedImage image); String prepareHtmlImgSrc(byte[] avatar);  }### Answer:
@Test public void testPrepareHtmlImgSrc() { String source = "QUFBQUJBQ0FB"; Base64Wrapper base64Wrapper = new Base64Wrapper(); byte[] sourceBytes = base64Wrapper.decodeB64Bytes(source); String actual = imageConverter.prepareHtmlImgSrc(sourceBytes); assertEquals(actual, source); }