### Question:
Ftrl extends Optimizer { @Override public String getOptimizerName() { return "Ftrl"; } Ftrl(Graph graph);  Ftrl(Graph graph, String name);  Ftrl(Graph graph, float learningRate);  Ftrl(Graph graph, String name, float learningRate);  Ftrl(
      Graph graph,
      float learningRate,
      float learningRatePower,
      float initialAccumulatorValue,
      float l1Strength,
      float l2Strength,
      float l2ShrinkageRegularizationStrength);  Ftrl(
      Graph graph,
      String name,
      float learningRate,
      float learningRatePower,
      float initialAccumulatorValue,
      float l1Strength,
      float l2Strength,
      float l2ShrinkageRegularizationStrength); @Override String getOptimizerName(); static final String ACCUMULATOR; static final String LINEAR_ACCUMULATOR; static final float LEARNING_RATE_DEFAULT; static final float LEARNING_RATE_POWER_DEFAULT; static final float INITIAL_ACCUMULATOR_VALUE_DEFAULT; static final float L1STRENGTH_DEFAULT; static final float L2STRENGTH_DEFAULT; static final float L2_SHRINKAGE_REGULARIZATION_STRENGTH_DEFAULT; }### Answer:
@Test public void testGetOptimizerName() { try (TestSession session = TestSession.createTestSession(tfMode)) { Graph graph = session.getGraph(); Ftrl instance = new Ftrl(graph); String expResult = "Ftrl"; String result = instance.getOptimizerName(); assertEquals(expResult, result); } }