code: public static byte[] fileToBytes(Object testClass, String relativePath) {
  		try {
  			URL url = testClass.getClass().getResource(relativePath);
  			if (url == null) {
  				throw new FileNotFoundException(relativePath);
  			}
  			return Files.readAllBytes(Paths.get(url.toURI()));
  		}
  		catch (IOException | URISyntaxException ex) {
  			throw new IllegalStateException(ex);
  		}
  	}
docs: Helper method to convert a file to bytes.
  @param testClass - test class relative to which the file is stored
  @param relativePath - relative path to the file
  @return bytes of the file
  @since 2.1.0