@Test public void testExpressingAnInterestAfterConfiguration() throws IOException, EncodingException, InterruptedException { // add response (before face is connected) Data response = new Data(new Name("/test/with/responses")); response.setContent(new Blob("...")); face.receive(response); // make request expressInterest("/test/with/responses"); run(20); assertNotNull(recvData); assertEquals(isTimeout, false); assertEquals(recvData.getName().toString(), "/test/with/responses"); assertEquals(recvData.getContent().buf(), new Blob("...").buf()); }