InMemoryUserMaster extends AbstractInMemoryMaster<ManageableUser> implements UserMaster { @Override public ManageableUser getByName(String userName) { ArgumentChecker.notNull(userName, "userName"); return super.getByName(userName); } InMemoryUserMaster();  InMemoryUserMaster(final ObjectIdSupplier objectIdSupplier);  InMemoryUserMaster(final ObjectIdSupplier objectIdSupplier, final ChangeManager changeManager); @Override boolean nameExists(String userName); @Override ManageableUser getByName(String userName); @Override ManageableUser getById(ObjectId objectId); @Override UniqueId add(ManageableUser user); @Override UniqueId update(ManageableUser user); @Override UniqueId save(ManageableUser user); @Override void removeByName(String userName); @Override void removeById(ObjectId objectId); @Override UserSearchResult search(UserSearchRequest request); @Override UserEventHistoryResult eventHistory(UserEventHistoryRequest request); @Override UserAccount getAccount(String userName); @Override RoleMaster roleMaster(); @Override final ChangeManager changeManager(); @Override String toString(); static final String DEFAULT_OID_SCHEME; static final ManageableUser REMOVED; }
@Test(expectedExceptions = DataNotFoundException.class) public void test_getByName_noMatch() { master.getByName("notfound"); }