* given a salt and a password
*/
public void testGetPassword() {
// passwd is a fake class for testing located in testcases dir
Shadow shadow = null;
try {
shadow = new Shadow(SHADOW_STREAM);
} catch (Exception e) {
fail();
}
// look me up out out of that file and make sure uid is still 28272
String userid = shadow.getPassword(USER_ID);
assertEquals(userid, CRYPT_PASSWORD);
}