### Question:
DesStringToKey { public byte[] getKey( String passPhrase ) { return generateKey( passPhrase ); }  byte[] getKey( String passPhrase ); byte[] getKey( String password, String realmName, String userName );  }### Answer:
@Test public void testDesStringToKeyVector1() { byte[] key = stringToKey.getKey( "password", "ATHENA.MIT.EDU", "raeburn" ); assertTrue( "Key match", Arrays.equals( DES_KEY1, key ) ); }
@Test public void testDesStringToKeyVector2() { byte[] key = stringToKey.getKey( "potatoe", "WHITEHOUSE.GOV", "danny" ); assertTrue( "Key match", Arrays.equals( DES_KEY2, key ) ); }