### Question:
RequestFactory implements Serializable { public EntityRequest createDeleteVersionRequest(final Store store, final JsonObject version) { final String appUuid = Json.getString(version, Version.APP_UUID); final String uuid = Json.getString(version, ApiObject.UUID); final EntityRequest request = new EntityRequest( Method.DELETE, this.getUrl(store, URL_APPS, appUuid, VERSIONS, uuid)); return request; } RequestFactory(); EntityRequest createLoginRequest(final Store store); EntityRequest createLogoutRequest(final Store store); EntityRequest createLanguageRequest(final Store store); EntityRequest createAppStoreItemsRequest(final Store store); ZeroCopyFileRequest createUploadRequest(final Store store, final File file); ZeroCopyFileRequest createUploadAppRequest(
            final Store store,
            final String releaseStatus,
            final boolean archivePreviousVersion,
            final String environmentUuid); EntityRequest createAppFromFileRequest(final Store store, final JsonObject asset); EntityRequest createPersistApplicationRequest(final Store store, final JsonObject app); EntityRequest createPersistVersionRequest(final Store store, final JsonObject app, final JsonObject version); EntityRequest createDeleteVersionRequest(final Store store, final JsonObject version);  }### Answer:
@Test public void shouldCreateDeleteVersionRequestFromHostName() { this.store.setUrl(URL_HOST_NAME); final EntityRequest request = this.requestFactory.createDeleteVersionRequest(this.store, this.version); assertThat(request).isNotNull(); assertThat(request.getMethod()).isEqualTo(Method.DELETE); assertThat(request.getUri()).isEqualTo("https: }
@Test public void shouldCreateDeleteVersionRequestFromApiUrl() { this.store.setUrl(URL_API_URL); final EntityRequest request = this.requestFactory.createDeleteVersionRequest(this.store, this.version); assertThat(request).isNotNull(); assertThat(request.getMethod()).isEqualTo(Method.DELETE); assertThat(request.getUri()).isEqualTo("https: }