### Question:
FilesystemBinaryStorageSvcImpl extends BaseBinaryStorageSvcImpl { @Override public byte[] fetchBlob(IIdType theResourceId, String theBlobId) throws IOException { StoredDetails details = fetchBlobDetails(theResourceId, theBlobId); try (InputStream inputStream = getInputStream(theResourceId, theBlobId)) { if (inputStream != null) { return IOUtils.toByteArray(inputStream, details.getBytes()); } } throw new ResourceNotFoundException("Unknown blob ID: " + theBlobId + " for resource ID " + theResourceId); } FilesystemBinaryStorageSvcImpl(String theBasePath); @PostConstruct void start(); @Override StoredDetails storeBlob(IIdType theResourceId, String theBlobIdOrNull, String theContentType, InputStream theInputStream); @Override StoredDetails fetchBlobDetails(IIdType theResourceId, String theBlobId); @Override boolean writeBlob(IIdType theResourceId, String theBlobId, OutputStream theOutputStream); @Override void expungeBlob(IIdType theResourceId, String theBlobId); @Override byte[] fetchBlob(IIdType theResourceId, String theBlobId);  }### Answer:
@Test public void testFetchBlobUnknown() throws IOException { try { mySvc.fetchBlob(new IdType("Patient/123"), "1111111"); fail(); } catch (ResourceNotFoundException e) { assertEquals("Unknown blob ID: 1111111 for resource ID Patient/123", e.getMessage()); } }