@Test
public void testExpandSome() throws MetExtractionException {

  when(configuration.containsKey("FullDateTimeKey")).thenReturn(true);
  when(configuration.containsKey("FullDateTimeFormat")).thenReturn(true);
  when(configuration.containsKey("YearKey")).thenReturn(true);
  when(configuration.containsKey("MonthKey")).thenReturn(true);
  when(configuration.containsKey("DayKey")).thenReturn(true);
  extractor.configure(configuration);
  Metadata extractedMetadata = extractor.doExtract(null, metadata);
  assertThat(extractedMetadata.getMetadata("StartYear"), is("2013"));
  assertThat(extractedMetadata.getMetadata("StartMonth"), is("05"));
  assertThat(extractedMetadata.getMetadata("StartDay"), is("23"));
  assertThat(extractedMetadata.containsKey("StartHour"), is(false));
  assertThat(extractedMetadata.containsKey("StartMinute"), is(false));
  assertThat(extractedMetadata.containsKey("StartSecond"), is(false));
}