@Test
public void testUpdateFetchPositionToCommitted() {

    // unless a specific reset is expected, the default behavior is to reset to the committed
    // position if one is present
    subscriptions.assignFromUser(Arrays.asList(tp));
    subscriptions.committed(tp, new OffsetAndMetadata(5));
    fetcher.updateFetchPositions(Collections.singleton(tp));
    assertTrue(subscriptions.isFetchable(tp));
    assertEquals(5, subscriptions.position(tp).longValue());
}