### Question:
AbstractRetryMessageListener extends AbstractMessageListener<K, V> { protected RetryPolicy getRetryPolicy() { SimpleRetryPolicy simpleRetryPolicy = new SimpleRetryPolicy(); simpleRetryPolicy.setMaxAttempts( retryMaxAttempts ); return simpleRetryPolicy; }  void setRetryMaxAttempts( int retryMaxAttempts ); void setBackOffInitialInterval( long backOffInitialInterval ); void setBackOffIMaxInterval( long backOffIMaxInterval ); void setBackOffIMultiplier( double backOffIMultiplier ); int getRetryMaxAttempts(); long getBackOffInitialInterval(); long getBackOffIMaxInterval(); double getBackOffIMultiplier();  }### Answer:
@Test public void testGetRetryTemplateShouldHaveTheDefaultSimpleRetryPolicy() { RetryPolicy retryPolicy = abstractRetryMessageListener.getRetryPolicy(); assertNotNull( retryPolicy ); assertTrue( retryPolicy instanceof SimpleRetryPolicy ); assertEquals( SimpleRetryPolicy.DEFAULT_MAX_ATTEMPTS, ( (SimpleRetryPolicy) retryPolicy ).getMaxAttempts() ); }