### Question:
SingleQueueLlamaAM extends LlamaAMImpl implements
    RMListener { @Override public synchronized void stop() { running = false; if (rmConnector != null) { if (queue != null) { rmConnector.unregister(); } rmConnector.stop(); } } SingleQueueLlamaAM(Configuration conf, String queue,
                            ScheduledExecutorService stp); static Class<? extends RMConnector> getRMConnectorClass(
      Configuration conf); void setCallback(IntraLlamaAMsCallback callback); @Override void start(); RMConnector getRMConnector(); @Override boolean isRunning(); @Override synchronized void stop(); @Override List<NodeInfo> getNodes(); void deleteAllYarnApplications(); @Override @SuppressWarnings("unchecked") void reserve(UUID reservationId,
      final Reservation reservation); @Override PlacedReservation getReservation(final UUID reservationId); @Override PlacedReservation releaseReservation(UUID handle,
      final UUID reservationId, boolean doNotCache); @SuppressWarnings("unchecked") PlacedReservation releaseReservation(UUID handle,
      final UUID reservationId, boolean doNotCache, boolean doNotDispatch); @Override @SuppressWarnings("unchecked") List<PlacedReservation> releaseReservationsForHandle(UUID handle,
      boolean doNotCache); @Override List<PlacedReservation> releaseReservationsForQueue(String queue,
      boolean doNotCache); @Override void emptyCacheForQueue(String queue); @Override @SuppressWarnings("unchecked") void onEvent(final List<RMEvent> rmEvents); @Override void stoppedByRM(); static final List<String> METRIC_TEMPLATE_KEYS; }### Answer:
@Test public void testRmStopNoRMConnector() throws Exception { SingleQueueLlamaAM llama = createLlamaAM(); llama.stop(); }