}
@SuppressWarnings("unchecked")
@Test(expectedExceptions = com.opengamma.DataNotFoundException.class)
public void testBatchRunDataNotFound() throws Exception {
BatchMasterWriter batchMaster = mock(BatchMasterWriter.class);
when(batchMaster.getRiskRun((ObjectId) any())).thenThrow(DataNotFoundException.class);
DataBatchMasterResource batchMasterResource = new DataBatchMasterResource(batchMaster);
String batchUid = "Scheme~MockUniqueId";
DataBatchRunResource batchRunResource = batchMasterResource.batchRuns(batchUid);