@Test
public void testRowRange() {

  // Test with Bytes input
  Assert.assertEquals(new Span(rw1b, true, rw2b, false),
      Span.newBuilder().startRow(rw1b).endRow(rw2b).exclusive().build());
  Assert.assertEquals(new Span(rw1b, false, rw2b, false),
      Span.newBuilder().startRow(rw1b).exclusive().endRow(rw2b).exclusive().build());
  Assert.assertEquals(new Span(rw1b, true, rw2b, true),
      Span.newBuilder().startRow(rw1b).endRow(rw2b).build());
  Assert.assertEquals(new Span(rw1b, false, rw2b, true),
      Span.newBuilder().startRow(rw1b).exclusive().endRow(rw2b).build());
  // Test with String input
  Assert.assertEquals(new Span(rw1b, true, rw2b, false),
      Span.newBuilder().startRow(rw1s).endRow(rw2s).exclusive().build());
  Assert.assertEquals(new Span(rw1b, false, rw2b, false),
      Span.newBuilder().startRow(rw1s).exclusive().endRow(rw2s).exclusive().build());
  Assert.assertEquals(new Span(rw1b, true, rw2b, true),
      Span.newBuilder().startRow(rw1s).endRow(rw2s).build());
  Assert.assertEquals(new Span(rw1b, false, rw2b, true),
      Span.newBuilder().startRow(rw1s).exclusive().endRow(rw2s).build());
}