public void searchOneBatch() {
final UniqueId marketDataUid = _cycleMetadataStub.getMarketDataSnapshotId();
_batchMaster.createMarketData(marketDataUid);
RiskRun run = _batchMaster.startRiskRun(_cycleMetadataStub, Maps.<String, String>newHashMap(), RunCreationMode.AUTO, SnapshotMode.PREPARED);
BatchRunSearchRequest request = new BatchRunSearchRequest();
request.setValuationTime(run.getValuationTime());
Pair<List<RiskRun>, Paging> result = _batchMaster.searchRiskRun(request);
assertNotNull(result);
assertEquals(1, result.getFirst().size());