@Test
public void testGetXResourceFile() {

	File file = new File("testGetXResource");
	Response expectedResponse = Response.ok(file, MediaType.APPLICATION_OCTET_STREAM)
			.header("Content-Disposition", "attachment;filename=" + file.getName()).build();
	VXResource vxResource = vxResource(Id);
	Mockito.when(
			searchUtil.extractString((HttpServletRequest) Mockito.any(), (SearchCriteria) Mockito.any(),
					(String) Mockito.any(), (String) Mockito.any(), (String) Mockito.any()))
			.thenReturn("json");
	Mockito.when(assetREST.getXResource(Id)).thenReturn(vxResource);
	Mockito.when(assetMgr.getXResourceFile(vxResource, "json")).thenReturn(file);
	Response reponse = assetREST.getXResourceFile(request, Id);
	Assert.assertEquals(expectedResponse.getStatus(), reponse.getStatus());
	Mockito.verify(assetMgr).getXResourceFile(vxResource, "json");
	Mockito.verify(searchUtil).extractString((HttpServletRequest) Mockito.any(),
			(SearchCriteria) Mockito.any(), (String) Mockito.any(), (String) Mockito.any(),
			(String) Mockito.any());
}