### Question:
Adamax extends Optimizer { @Override public String getOptimizerName() { return "Adamax"; } Adamax(Graph graph);  Adamax(Graph graph, String name);  Adamax(Graph graph, float learningRate);  Adamax(Graph graph, String name, float learningRate);  Adamax(Graph graph, float learningRate, float betaOne, float betaTwo, float epsilon);  Adamax(
      Graph graph, String name, float learningRate, float betaOne, float betaTwo, float epsilon); @Override String getOptimizerName(); static final String FIRST_MOMENT; static final String SECOND_MOMENT; static final float LEARNING_RATE_DEFAULT; static final float EPSILON_DEFAULT; static final float BETA_ONE_DEFAULT; static final float BETA_TWO_DEFAULT; }### Answer:
@Test public void testGetOptimizerName() { try (TestSession session = TestSession.createTestSession(tfMode)) { Graph graph = session.getGraph(); Adamax instance = new Adamax(graph); String expResult = "Adamax"; String result = instance.getOptimizerName(); assertEquals(expResult, result); } }