### Question:
ImageService { public byte[] getDefaultImage() { byte[] result; try { result = getFileBytes(defaultImagePath); } catch (IOException e) { result = new byte[0]; LOGGER.error("Failed to load default image", e); } return result; } ImageService(
            ImageConverter imageConverter,
            Base64Wrapper base64Wrapper,
            String defaultImagePath,
            JCommuneProperty imageSizeProperty); byte[] getDefaultImage(); String preProcessAndEncodeInString64(byte[] bytes); void validateImageFormat(MultipartFile file); void validateImageFormat(byte[] bytes); void validateImageSize(byte[] bytes); String getHtmlSrcImagePrefix(); static final String ICO_TYPE; }### Answer:
@Test public void getDefaultImageShouldReturnNotEmptyImage() { byte[] avatar = imageService.getDefaultImage(); assertTrue(avatar.length > 0); }