@Test
public void deleteStateThatWasEmptyTest() throws Exception {

    // Setup:
    State state = stateFactory.createNew(VALUE_FACTORY.createIRI("http://mobi.com/states/0"));
    RepositoryConnection conn = repo.getConnection();
    conn.add(state.getModel());
    manager.deleteState(state.getResource());
    Model stateModel = MODEL_FACTORY.createModel();
    conn.getStatements(state.getResource(), null, null).forEach(stateModel::add);
    assertTrue(stateModel.isEmpty());
    conn.close();
}