@Test
public void testToDetailsStringIncludesEncoderVersionNumber()
{

    FlagEncoder encoder = new AbstractFlagEncoder(1, 2.0, 3)
    {
        @Override
        public int getVersion()
        {
            return 10;
        }
        @Override
        public String toString()
        {
            return "newEncoder";
        }
        @Override
        protected String getPropertiesString()
        {
            return "myProperties";
        }
        @Override
        public long handleRelationTags( OSMRelation relation, long oldRelationFlags )
        {
            return 0;
        }
        @Override
        public long acceptWay( OSMWay way )
        {
            return 0;
        }
        @Override
        public long handleWayTags( OSMWay way, long allowed, long relationFlags )
        {
            return 0;
        }
    };
    EncodingManager subject = new EncodingManager(encoder);
    assertEquals("newEncoder|myProperties|version=10", subject.toDetailsString());
}