code: public void registerMockResource(String location, byte[] contents) {
          mockResources.put(location, new GrailsByteArrayResource(contents, location));
      }
docs: Registers a mock resource with the first argument as the location and the second as the contents
  of the resource.
  
  @param location The location
  @param contents The contents of the resource