@Test
public void testGet_int() {

    int idx = 2;
    Tensor instance = new Tensor(new float[] {0.1f, 0.2f, 0.3f, 0.4f});
    float expResult = 0.3F;
    float result = instance.get(idx);
    assertEquals(expResult, result, 0.0);
}