@Test
public void testQueryCapabilities() throws Exception {

    SimpleFeatureSource transformed = transformWithSelection();
    QueryCapabilities caps = transformed.getQueryCapabilities();
    assertTrue(caps.isOffsetSupported());
    assertFalse(caps.isVersionSupported());
    QueryCapabilities originalCaps = STATES.getQueryCapabilities();
    assertEquals(originalCaps.isJoiningSupported(), caps.isJoiningSupported());
    assertEquals(originalCaps.isReliableFIDSupported(), caps.isReliableFIDSupported());
    assertEquals(originalCaps.isUseProvidedFIDSupported(), caps.isUseProvidedFIDSupported());
}