@Test
public void testProcessFrameCenter() {

  klvConfiguration.set(KlvProcessor.Configuration.SUBSAMPLE_COUNT, 50);
  Attribute attribute = mock(Attribute.class);
  when(attribute.getValues()).thenReturn(Collections.emptyList());
  when(geoBoxHandler.asAttribute()).thenReturn(Optional.of(attribute));
  when(geoBoxHandler.getAttributeName()).thenReturn(AttributeNameConstants.CORNER);
  attribute = mock(Attribute.class);
  when(attribute.getValues())
      .thenReturn(Arrays.asList("POINT(0 0)", "POINT(5 5)", "POINT(10 10)"));
  when(latLonHandler.asAttribute()).thenReturn(Optional.of(attribute));
  when(latLonHandler.getAttributeName()).thenReturn(AttributeNameConstants.FRAME_CENTER);
  locationKlvProcessor.process(handlers, metacard, klvConfiguration);
  assertThat(metacard.getLocation(), is(wktLineString));
}