class StorageClientMock extends AbstractMockClient implements StorageClient {

    @Override
    public Response getContainerAsync(String strategyId, String guid, DataCategory type, AccessLogInfoModel logInfo)
        throws StorageServerClientException, StorageNotFoundException {

        if (null != guid && guid.endsWith(".rng")) {
            try {
                return new FakeInboundResponse(Status.OK,
                    PropertiesUtils.getResourceAsStream("profile/profil_ok.rng"),
                    MediaType.APPLICATION_OCTET_STREAM_TYPE, null);
            } catch (FileNotFoundException e) {
                throw new StorageNotFoundException(e);
            }
        } else {
            return new FakeInboundResponse(Status.OK,
                IOUtils.toInputStream(MOCK_GET_FILE_CONTENT, Charset.defaultCharset()),
                MediaType.APPLICATION_OCTET_STREAM_TYPE, null);
        }
    }

}