@Test
public void importObject() throws Exception {

    final String jsonRelease = "{\n"
            + "    tag: [\"tender\"],\n"
            + "    planning: {\n"
            + "        budget: {\n"
            + "            description: \"budget desc...\",\n"
            + "            amount: {\n"
            + "                amount: 10000.0,\n"
            + "                currency: \"USD\"\n"
            + "            }\n"
            + "        }\n"
            + "    }\n"
            + "}";
    final JsonImport releaseJsonImport = new ReleaseJsonImport(releaseRepository, jsonRelease);
    final Release release = (Release) releaseJsonImport.importObject();
    final Release releaseById = releaseRepository.findById(release.getId()).get();
    Assert.assertNotNull("Check if we have something in the database", releaseById);
    Assert.assertEquals("Check if the releases are the same", release, releaseById);
}