### Question:
UserStore { public User findUser(Key publicKey) { return users.get(ByteBuffer.wrap(publicKey.getFingerPrint())); } UserStore(CommandLine.Options options); User findUser(Key publicKey); User findUser(String username);  }### Answer:
@Test public void findMissingUser() throws Exception { PublicKey publicKey = new PublicKey(); publicKey.setFingerPrint(new byte[]{6,-49,-18,45,-68,69,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,}); User nonUser = userStore.findUser(publicKey); assertNull(nonUser); }
@Test public void findUser() throws Exception { PublicKey publicKey = new PublicKey(); publicKey.setFingerPrint(new byte[]{6,-49,-18,45,-68,69,95,29,-100,-5,67,-81,-37,-120,-111,-45,-28,-36,3,51,-80,45,20,-45,18,106,110,-120,1,-20,100,-67}); User nonUser = userStore.findUser(publicKey); assertNotNull(nonUser); }