public static Event[] fromJson(final String json) throws IOException {
        return fromJson(json, BasicEventFactory.INSTANCE);
    }
@Test
    public void testFromJsonWithEmptyString() throws Exception {
        Event[] events = Event.fromJson("");
        assertEquals(0, events.length);
    }