@Test
public void testPriorities() {

    AuditConfig auditConfig = new AuditConfig("high_accuracy", null, null, false);
    assertEquals(PRIORITY_HIGH_ACCURACY, auditConfig.getLocationPriority());
    auditConfig = new AuditConfig("high-accuracy", null, null, false);
    assertEquals(PRIORITY_HIGH_ACCURACY, auditConfig.getLocationPriority());
    auditConfig = new AuditConfig("HIGH_ACCURACY", null, null, false);
    assertEquals(PRIORITY_HIGH_ACCURACY, auditConfig.getLocationPriority());
    auditConfig = new AuditConfig("balanced", null, null, false);
    assertEquals(PRIORITY_BALANCED_POWER_ACCURACY, auditConfig.getLocationPriority());
    auditConfig = new AuditConfig("BALANCED", null, null, false);
    assertEquals(PRIORITY_BALANCED_POWER_ACCURACY, auditConfig.getLocationPriority());
    auditConfig = new AuditConfig("low_power", null, null, false);
    assertEquals(PRIORITY_LOW_POWER, auditConfig.getLocationPriority());
    auditConfig = new AuditConfig("low-power", null, null, false);
    assertEquals(PRIORITY_LOW_POWER, auditConfig.getLocationPriority());
    auditConfig = new AuditConfig("low_POWER", null, null, false);
    assertEquals(PRIORITY_LOW_POWER, auditConfig.getLocationPriority());
    auditConfig = new AuditConfig("no_power", null, null, false);
    assertEquals(PRIORITY_NO_POWER, auditConfig.getLocationPriority());
    auditConfig = new AuditConfig("no-power", null, null, false);
    assertEquals(PRIORITY_NO_POWER, auditConfig.getLocationPriority());
    auditConfig = new AuditConfig("NO_power", null, null, false);
    assertEquals(PRIORITY_NO_POWER, auditConfig.getLocationPriority());
    auditConfig = new AuditConfig("qwerty", null, null, false);
    assertEquals(PRIORITY_HIGH_ACCURACY, auditConfig.getLocationPriority());
    auditConfig = new AuditConfig("", null, null, false);
    assertEquals(PRIORITY_HIGH_ACCURACY, auditConfig.getLocationPriority());
    auditConfig = new AuditConfig(null, null, null, false);
    assertNull(auditConfig.getLocationPriority());
}