assertEquals(1, getMaxDownloadRate(user));
assertEquals(2, user.getMaxIdleTime());
assertEquals(3, getMaxLoginNumber(user));
assertEquals(4, getMaxLoginPerIP(user));
assertEquals(5, getMaxUploadRate(user));
assertNotNull(user.authorize(new WriteRequest()));
assertFalse(user.getEnabled());
}
public void testGetUserByNameWithUnknownUser() throws Exception {
assertNull(userManager.getUserByName("foo"));