@Test
public void getStatesNoFiltersTest() throws Exception {

    // Setup:
    Model newState = MODEL_FACTORY.createModel();
    newState.add(VALUE_FACTORY.createIRI("http://example.com/example"), VALUE_FACTORY.createIRI(DCTERMS.TITLE.stringValue()), VALUE_FACTORY.createLiteral("Title"));
    newState.add(VALUE_FACTORY.createIRI("http://example.com/example"), VALUE_FACTORY.createIRI(DCTERMS.DESCRIPTION.stringValue()), VALUE_FACTORY.createLiteral("Description"));
    State state0 = stateFactory.createNew(VALUE_FACTORY.createIRI("http://mobi.com/states/0"));
    state0.setStateResource(Collections.singleton(VALUE_FACTORY.createIRI("http://example.com/example")));
    state0.setForUser(user);
    State state1 = stateFactory.createNew(VALUE_FACTORY.createIRI("http://mobi.com/states/1"));
    RepositoryConnection conn = repo.getConnection();
    conn.add(state0.getModel());
    conn.add(state1.getModel());
    conn.add(newState);
    Map<Resource, Model> result = manager.getStates(null, null, new HashSet<>());
    assertEquals(1, result.size());
    assertTrue(result.containsKey(state0.getResource()));
    assertTrue(result.get(state0.getResource()).equals(newState));
    conn.close();
}