public void testGetPackageForAtom() throws MalformedURLException, IOException {
URL url =new URL(baseURL, "rest/packages/mortgages");
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.setRequestProperty("Authorization",
"Basic " + new Base64().encodeToString(( "admin:admin".getBytes() )));
connection.setRequestMethod("GET");
connection.setRequestProperty("Accept", MediaType.APPLICATION_ATOM_XML);
InputStream in = connection.getInputStream();
//System.out.println(IOUtils.toString(connection.getInputStream()));