### Question:
RunningQuery extends AbstractRunningQuery implements Runnable { public Connector getConnection() { return connection; } RunningQuery();  RunningQuery(Connector connection, AccumuloConnectionFactory.Priority priority, QueryLogic<?> logic, Query settings, String methodAuths,
                    Principal principal, QueryMetricFactory metricFactory);  RunningQuery(Connector connection, AccumuloConnectionFactory.Priority priority, QueryLogic<?> logic, Query settings, String methodAuths,
                    Principal principal, RunningQueryTiming timing, ExecutorService executor, QueryMetricFactory metricFactory);  RunningQuery(QueryMetricsBean queryMetrics, Connector connection, AccumuloConnectionFactory.Priority priority, QueryLogic<?> logic, Query settings,
                    String methodAuths, Principal principal, QueryMetricFactory metricFactory);  RunningQuery(QueryMetricsBean queryMetrics, Connector connection, AccumuloConnectionFactory.Priority priority, QueryLogic<?> logic, Query settings,
                    String methodAuths, Principal principal, RunningQueryTiming timing, ExecutorService executor, QueryMetricFactory metricFactory);  RunningQuery(QueryMetricsBean queryMetrics, Connector connection, AccumuloConnectionFactory.Priority priority, QueryLogic<?> logic, Query settings,
                    String methodAuths, Principal principal, RunningQueryTiming timing, ExecutorService executor, QueryPredictor predictor,
                    QueryMetricFactory metricFactory); static RunningQuery createQueryWithAuthorizations(QueryMetricsBean queryMetrics, Connector connection, AccumuloConnectionFactory.Priority priority,
                    QueryLogic<?> logic, Query settings, String methodAuths, RunningQueryTiming timing, ExecutorService executor, QueryPredictor predictor,
                    QueryMetricFactory metricFactory); void setConnection(Connector connection); ResultsPage next(); void cancel(); boolean isFinished(); boolean isCanceled(); Connector getConnection(); AccumuloConnectionFactory.Priority getConnectionPriority(); QueryLogic<?> getLogic(); Query getSettings(); TransformIterator getTransformIterator(); void setPredictor(QueryPredictor predictor); void closeConnection(AccumuloConnectionFactory factory); @Override long getLastPageNumber(); @Override String toString(); void setTraceInfo(TInfo traceInfo); TInfo getTraceInfo(); QueryMetricsBean getQueryMetrics(); void setQueryMetrics(QueryMetricsBean queryMetrics); @Override void run();  }### Answer:
@Test public void testConstructorWithNullConnector() throws Exception { Connector connector = null; DatawaveUser user = new DatawaveUser(userDN, UserType.USER, null, null, null, 0L); DatawavePrincipal principal = new DatawavePrincipal(Collections.singletonList(user)); RunningQuery query = new RunningQuery(connector, connectionPriority, logic, settings, methodAuths, principal, new QueryMetricFactoryImpl()); assertEquals(connector, query.getConnection()); }