### Question:
EncodingManager { public String toDetailsString() { StringBuilder str = new StringBuilder(); for (AbstractFlagEncoder encoder : edgeEncoders) { if (str.length() > 0) str.append(","); str.append(encoder.toString()) .append("|") .append(encoder.getPropertiesString()) .append("|version=") .append(encoder.getVersion()); } return str.toString(); } EncodingManager(String flagEncodersStr);  EncodingManager(String flagEncodersStr, int bytesForEdgeFlags);  EncodingManager(FlagEncoderFactory factory, String flagEncodersStr, int bytesForEdgeFlags);  EncodingManager(FlagEncoder... flagEncoders);  EncodingManager(List<? extends FlagEncoder> flagEncoders);  EncodingManager(List<? extends FlagEncoder> flagEncoders, int bytesForEdgeFlags); static EncodingManager create(FlagEncoderFactory factory, String ghLoc); int getBytesForFlags(); boolean supports(String encoder); FlagEncoder getEncoder(String name); long acceptWay(ReaderWay way); long handleRelationTags(ReaderRelation relation, long oldRelationFlags); long handleWayTags(ReaderWay way, long includeWay, long relationFlags); @Override String toString(); String toDetailsString(); long flagsDefault(boolean forward, boolean backward); long reverseFlags(long flags); @Override int hashCode(); @Override boolean equals(Object obj); long handleNodeTags(ReaderNode node); EncodingManager setEnableInstructions(boolean enableInstructions); EncodingManager setPreferredLanguage(String preferredLanguage); void applyWayTags(ReaderWay way, EdgeIteratorState edge); List<FlagEncoder> fetchEdgeEncoders(); boolean needsTurnCostsSupport();  }### Answer:
@Test public void testToDetailsStringIncludesEncoderVersionNumber() { FlagEncoder encoder = new AbstractFlagEncoder(1, 2.0, 3) { @Override public int getVersion() { return 10; } @Override public String toString() { return "new_encoder"; } @Override protected String getPropertiesString() { return "my_properties"; } @Override public long handleRelationTags(ReaderRelation relation, long oldRelationFlags) { return 0; } @Override public long acceptWay(ReaderWay way) { return 0; } @Override public long handleWayTags(ReaderWay way, long allowed, long relationFlags) { return 0; } }; EncodingManager subject = new EncodingManager(encoder); assertEquals("new_encoder|my_properties|version=10", subject.toDetailsString()); }