### Question:
EncodingManager { public FlagEncoder getEncoder( String name ) { return getEncoder(name, true); } EncodingManager( String flagEncodersStr );  EncodingManager( String flagEncodersStr, int bytesForFlags );  EncodingManager( FlagEncoder... flagEncoders );  EncodingManager( List<? extends FlagEncoder> flagEncoders );  EncodingManager( List<? extends FlagEncoder> flagEncoders, int bytesForEdgeFlags ); int getBytesForFlags(); boolean supports( String encoder ); FlagEncoder getEncoder( String name ); long acceptWay( OSMWay way ); long handleRelationTags( OSMRelation relation, long oldRelationFlags ); long handleWayTags( OSMWay 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( OSMNode node ); EncodingManager setEnableInstructions( boolean enableInstructions ); void applyWayTags( OSMWay way, EdgeIteratorState edge ); List<FlagEncoder> fetchEdgeEncoders(); boolean needsTurnCostsSupport(); static EncodingManager create( String ghLoc ); static final String CAR; static final String BIKE; static final String BIKE2; static final String RACINGBIKE; static final String MOUNTAINBIKE; static final String FOOT; static final String MOTORCYCLE; }### Answer:
@Test public void testSupportFords() { String flagEncodersStr = "car,bike,foot"; EncodingManager manager = new EncodingManager(flagEncodersStr, 8); assertTrue(((AbstractFlagEncoder) manager.getEncoder("car")).isBlockFords()); assertTrue(((AbstractFlagEncoder) manager.getEncoder("bike")).isBlockFords()); assertTrue(((AbstractFlagEncoder) manager.getEncoder("foot")).isBlockFords()); flagEncodersStr = "car,bike|blockFords=false,foot|blockFords=false"; manager = new EncodingManager(flagEncodersStr, 8); assertTrue(((AbstractFlagEncoder) manager.getEncoder("car")).isBlockFords()); assertFalse(((AbstractFlagEncoder) manager.getEncoder("bike")).isBlockFords()); assertFalse(((AbstractFlagEncoder) manager.getEncoder("foot")).isBlockFords()); flagEncodersStr = "car|turnCosts=true|blockFords=true,bike,foot|blockFords=false"; manager = new EncodingManager(flagEncodersStr, 8); assertTrue(((AbstractFlagEncoder) manager.getEncoder("car")).isBlockFords()); assertTrue(((AbstractFlagEncoder) manager.getEncoder("bike")).isBlockFords()); assertFalse(((AbstractFlagEncoder) manager.getEncoder("foot")).isBlockFords()); }