### Question:
ResourceMappingConfiguration { static String getLocation() { if (getStaticResourceLocation() != null) { return getStaticResourceLocation(); } return getConfiguration(CoreConfiguration.Items.resourceMappingLocation); }   static final String DEFAULT_STATIC_RESOURCE_MAPPING_LOCATION; }### Answer:
@Test public void testLocationIsNull() { configure(staticResourceLocation, (String) null); configure(resourceMappingLocation, (String) null); String location = ResourceMappingConfiguration.getLocation(); assertNull(location); }
@Test public void testLocationConfiguredUsingStaticResourceLocation() { String expected = "some_location"; configure(staticResourceLocation, expected); configure(resourceMappingLocation, (String) null); String location = ResourceMappingConfiguration.getLocation(); assertEquals(expected, location); }
@Test public void testLocationConfiguredWithResourceMappingLocationSwitch() { String expected = "some_location"; configure(staticResourceLocation, (String) null); configure(resourceMappingLocation, expected); String location = ResourceMappingConfiguration.getLocation(); assertEquals(expected, location); }
@Test public void testLocationStaticResourceLocationHasPrecedence() { String expected = "some_location"; String wrong = "fail"; configure(staticResourceLocation, expected); configure(resourceMappingLocation, wrong); String location = ResourceMappingConfiguration.getLocation(); assertEquals(expected, location); }