GetSnapshotsRequestExecutorImpl implements GetSnapshotsRequestExecutor { protected GetSnapshotsRequest createGetSnapshotsRequest( com.liferay.portal.search.engine.adapter.snapshot.GetSnapshotsRequest getSnapshotsRequest) { GetSnapshotsRequest elasticsearchGetSnapshotsRequest = new GetSnapshotsRequest(); elasticsearchGetSnapshotsRequest.ignoreUnavailable( getSnapshotsRequest.isIgnoreUnavailable()); elasticsearchGetSnapshotsRequest.repository( getSnapshotsRequest.getRepositoryName()); elasticsearchGetSnapshotsRequest.snapshots( getSnapshotsRequest.getSnapshotNames()); elasticsearchGetSnapshotsRequest.verbose( getSnapshotsRequest.isVerbose()); return elasticsearchGetSnapshotsRequest; }  @Override com.liferay.portal.search.engine.adapter.snapshot.GetSnapshotsResponse execute(
				com.liferay.portal.search.engine.adapter.snapshot.
					GetSnapshotsRequest getSnapshotsRequest);  }
@Test public void testCreateGetSnapshotsRequest() { GetSnapshotsRequest getSnapshotsRequest = new GetSnapshotsRequest( "repository1"); getSnapshotsRequest.setIgnoreUnavailable(true); getSnapshotsRequest.setSnapshotNames("snapshot1", "snapshot2"); getSnapshotsRequest.setVerbose(true); GetSnapshotsRequestExecutorImpl getSnapshotsRequestExecutorImpl = new GetSnapshotsRequestExecutorImpl() { { setElasticsearchClientResolver(_elasticsearchFixture); } }; org.elasticsearch.action.admin.cluster.snapshots.get.GetSnapshotsRequest elasticsearchGetSnapshotsRequest = getSnapshotsRequestExecutorImpl.createGetSnapshotsRequest( getSnapshotsRequest); Assert.assertEquals( getSnapshotsRequest.isIgnoreUnavailable(), elasticsearchGetSnapshotsRequest.ignoreUnavailable()); Assert.assertEquals( getSnapshotsRequest.getRepositoryName(), elasticsearchGetSnapshotsRequest.repository()); Assert.assertArrayEquals( getSnapshotsRequest.getSnapshotNames(), elasticsearchGetSnapshotsRequest.snapshots()); Assert.assertEquals( getSnapshotsRequest.isVerbose(), elasticsearchGetSnapshotsRequest.verbose()); }