public class ExceptionJsonContainerTest {
@Test //TODO add description of what the test should do
public void testNewExceptionJsonContainer() {
final Exception exp = new Exception("My Error");
final ExceptionJsonContainer ejc = new ExceptionJsonContainer(exp);
final String json = ejc.toJson();
assertTrue("test json",json.contains("My Error"));
final ExceptionJsonContainer conv = ejc.fromJson(json);
assertEquals("test cast conversion 1",conv.message,"My Error");
assertEquals("test cast conversion 2",conv.exceptionStack.size(),exp.getStackTrace().length);
assertEquals("test cast conversion 3",conv.exceptionStack.get(1),exp.getStackTrace()[1].toString());