@Test
public void testGetParameterValues() {
String reportFile = "/resources/jasper/test.jrxml";
InputStream jrXml = ReportServiceTest.class.getResourceAsStream(reportFile);
ReportServiceImpl service = new ReportServiceImpl();
Map<String, String[]> inputParam = new HashMap<String, String[]>();
inputParam.put("raffleId", new String[] {"24"});
inputParam.put("branch", new String[] {"Cebu"});
inputParam.put("reportDate", new String[] {"12 Aug 1995"});
Map<String, Object> reportParam = service.getParameterValues(inputParam, jrXml);
Assert.assertEquals(new Long(24), reportParam.get("raffleId"));
Assert.assertEquals("Cebu", reportParam.get("branch"));
Assert.assertEquals(new Date("12 Aug 1995"), reportParam.get("reportDate"));
}