@Test
public void testModifiedFacetTermDisplayContexts() {

	ModifiedFacetDisplayBuilder modifiedFacetDisplayBuilder =
		createDisplayBuilder();
	mockFacetConfiguration(
		"past-hour=[20180515225959 TO 20180515235959]",
		"some-time-ago=[20180508235959 TO 20180514235959]");
	ModifiedFacetDisplayContext modifiedFacetDisplayContext =
		modifiedFacetDisplayBuilder.build();
	List<ModifiedFacetTermDisplayContext> modifiedFacetTermDisplayContexts =
		modifiedFacetDisplayContext.getModifiedFacetTermDisplayContexts();
	Assert.assertEquals(
		modifiedFacetTermDisplayContexts.toString(), 2,
		modifiedFacetTermDisplayContexts.size());
	ModifiedFacetTermDisplayContext modifiedFacetTermDisplayContext =
		modifiedFacetTermDisplayContexts.get(0);
	Assert.assertEquals(
		"past-hour", modifiedFacetTermDisplayContext.getLabel());
	Assert.assertEquals(
		"[20180515225959 TO 20180515235959]",
		modifiedFacetTermDisplayContext.getRange());
	modifiedFacetTermDisplayContext = modifiedFacetTermDisplayContexts.get(
		1);
	Assert.assertEquals(
		"some-time-ago", modifiedFacetTermDisplayContext.getLabel());
	Assert.assertEquals(
		"[20180508235959 TO 20180514235959]",
		modifiedFacetTermDisplayContext.getRange());
}