DeleteSnapshotRequestExecutorImpl implements DeleteSnapshotRequestExecutor { protected DeleteSnapshotRequest createDeleteSnapshotRequest( com.liferay.portal.search.engine.adapter.snapshot.DeleteSnapshotRequest deleteSnapshotRequest) { DeleteSnapshotRequest elasticsearchDeleteSnapshotRequest = new DeleteSnapshotRequest(); elasticsearchDeleteSnapshotRequest.repository( deleteSnapshotRequest.getRepositoryName()); elasticsearchDeleteSnapshotRequest.snapshots( deleteSnapshotRequest.getSnapshotName()); return elasticsearchDeleteSnapshotRequest; }  @Override DeleteSnapshotResponse execute(
		com.liferay.portal.search.engine.adapter.snapshot.DeleteSnapshotRequest
			deleteSnapshotRequest);  }
@Test public void testCreateDeleteSnapshotRequest() { DeleteSnapshotRequest deleteSnapshotRequest = new DeleteSnapshotRequest( "repository", "snapshot"); DeleteSnapshotRequestExecutorImpl deleteSnapshotRequestExecutorImpl = new DeleteSnapshotRequestExecutorImpl() { { setElasticsearchClientResolver(_elasticsearchFixture); } }; org.elasticsearch.action.admin.cluster.snapshots.delete. DeleteSnapshotRequest elasticDeleteSnapshotRequest = deleteSnapshotRequestExecutorImpl.createDeleteSnapshotRequest( deleteSnapshotRequest); Assert.assertEquals( deleteSnapshotRequest.getRepositoryName(), elasticDeleteSnapshotRequest.repository()); Assert.assertEquals( deleteSnapshotRequest.getSnapshotName(), elasticDeleteSnapshotRequest.snapshots()[0]); }