### Question:
Momentum extends Optimizer { @Override public String getOptimizerName() { return "Momentum"; } Momentum(Graph graph);  Momentum(Graph graph, float learningRate);  Momentum(Graph graph, float learningRate, float momentum);  Momentum(Graph graph, float learningRate, float momentum, boolean useNesterov);  Momentum(
      Graph graph, String name, float learningRate, float momentum, boolean useNesterov); @Override String toString(); @Override String getOptimizerName(); static final float LEARNING_RATE_DEFAULT; static final float MOMENTUM_DEFAULT; static final boolean NESTEROV_DEFAULT; static final String MOMENTUM; }### Answer:
@Test public void testGetOptimizerName() { try (TestSession session = TestSession.createTestSession(tfMode)) { Graph graph = session.getGraph(); Momentum instance = new Momentum(graph); String expResult = "Momentum"; String result = instance.getOptimizerName(); assertEquals(expResult, result); } }