@Test
public void toObjectFromFile() throws Exception {

    final ClassLoader classLoader = getClass().getClassLoader();
    final File file = new File(classLoader.getResource("json/release-json-to-object-test.json").getFile());
    final JsonToObject releaseJsonToObject = new ReleaseJsonToObject(file);
    Assert.assertTrue("Object is a Release", releaseJsonToObject.toObject() instanceof Release);
    final Release release = (Release) releaseJsonToObject.toObject();
    Assert.assertEquals("IDs are the same", "12345", release.getId());
    Assert.assertEquals("Check budget amount", new BigDecimal(10000),
            release.getPlanning().getBudget().getAmount().getAmount());
    Assert.assertEquals("Check budget currency", Amount.Currency.RON,
            release.getPlanning().getBudget().getAmount().getCurrency());
}