### Question:
SkipthoughtRESTEncoder extends SimpleRESTEncoder { @Override public void encodeEachImpl(Sentence input) throws IOException { encodeEach(input); } protected  SkipthoughtRESTEncoder();  SkipthoughtRESTEncoder(RESTAdapter restAdapter);  SkipthoughtRESTEncoder(RESTAdapter restAdapter, String vectorIdentifier); static SkipthoughtRESTEncoder create(String domain, int port); static SkipthoughtRESTEncoder create(String domain, int port, String vectorIdentifier); static SkipthoughtRESTEncoder create(String domain, int port, long embeddingVectorSize, int connectTimeout, int readTimeout); static SkipthoughtRESTEncoder create(String domain, int port, long embeddingVectorSize, int connectTimeout, int readTimeout, String vectorIdentifier); @Override INDArray encodeImpl(String word); @Override INDArray encodeImpl(Span span); @Override void encodeEachImpl(Sentence input); @Override void encodeEachImpl(Document input); @Override void encodeEachImpl(Collection<Document> docs);  }### Answer:
@Test public void encodeEachImplSentenceInDocumentsTest() throws IOException { skipthoughtRESTEncoder.encodeEach(dummyDocuments, Sentence.class); verify(skipthoughtRESTEncoder, times(dummyDocuments.size())) .encodeEachImpl(Mockito.any(Document.class)); }