### Question:
BooleanVertexSamples extends Samples<BooleanTensor> { @Override public BooleanTensor asTensor() { return BooleanTensor.stack(0, samples.stream().toArray(BooleanTensor[]::new)); } BooleanVertexSamples(List<BooleanTensor> samples); @Override BooleanTensor asTensor();  }### Answer:
@Test public void canGetSamplesAsTensor() { BooleanTensor samplesAsTensor = samples.asTensor(); BooleanTensor expectedTensor = BooleanTensor.create( new boolean[]{true, false, true, false}, 2, 1, 2 ); assertThat(samplesAsTensor, valuesAndShapesMatch(expectedTensor)); }