@Test(expected = IllegalArgumentException.class)
public void testStoreUserWithNoUsername() {

    Resource newUserId = VALUE_FACTORY.createIRI("http://mobi.com/users/newuser");
    User newUser = userFactory.createNew(newUserId);
    engine.storeUser(newUser);
}