@Test
  public void testVector() {
    final IREXP testREXP =
        PlainJavaConnectionTestSuiteContext.getInstance()
            .acquireRConnection()
            .eval("c(a = as.integer(1), a2 = 2.12, b = 2 == 1, c = as.symbol(\"s\"))");
    Assert.assertNotNull(testREXP);
    // TODO distinguish between MAP and VECTOR
    Assert.assertEquals(IREXP.XT_MAP, testREXP.getType());
    final IRVector testVector = testREXP.asVector();
    Assert.assertNotNull(testVector);
    Assert.assertEquals(4, testVector.size());
    final IREXP at0 = testVector.at(0);
    Assert.assertNotNull(at0);
    Assert.assertEquals(at0.getType(), IREXP.XT_INT);

    final IREXP at1 = testVector.at(1);
    Assert.assertNotNull(at1);
    Assert.assertEquals(at1.getType(), IREXP.XT_DOUBLE);
  }