### Question:
AttachmentsInOrderParser { public static List<String> parseAttachmentNames(JsonParser documentJsonParser) throws IOException { documentJsonParser.nextToken(); JsonToken jsonToken; while((jsonToken = documentJsonParser.nextToken()) != JsonToken.END_OBJECT) { if(CouchDbDocument.ATTACHMENTS_NAME.equals(documentJsonParser.getCurrentName())) { return readAttachments(documentJsonParser); } else if(jsonToken == JsonToken.START_OBJECT) { readIgnoreObject(documentJsonParser); } } return null; }  static List<String> parseAttachmentNames(JsonParser documentJsonParser);  }### Answer:
@Test public void parseAttachmentNames_should_return_the_attachment_names_in_order() throws IOException { List<String> attachmentNames = AttachmentsInOrderParser.parseAttachmentNames(attachmentsJsonParser); assertThat(attachmentNames, notNullValue()); assertThat(attachmentNames, is(knownOrderList)); }