FossologyHostKeyRepository implements HostKeyRepository { @Override public void add(HostKey hostkey, UserInfo ui) { throw throwUnsupportedOperationException(); } @Autowired  FossologyHostKeyRepository(FossologyFingerPrintRepository fossologyFingerPrintRepository); @Override int check(String host, byte[] key); @Override void add(HostKey hostkey, UserInfo ui); @Override void remove(String host, String type); @Override void remove(String host, String type, byte[] key); @Override String getKnownHostsRepositoryID(); @Override HostKey[] getHostKey(); @Override HostKey[] getHostKey(String host, String type);  }
@Test public void testAdd() { UserInfo ui = mock(UserInfo.class); HostKey hk = mock(HostKey.class); expectUnsupported(); repo.add(hk, ui); }