### Question:
NumberListBuilder { public List<Object> getList(double[] numbers, Type requestType) { List<Object> objectList = new ArrayList<Object>(); for (double doubleValue : numbers) { Object actualNumber = toActualNumber(doubleValue, requestType); objectList.add(actualNumber); } return objectList; }  List<Object> getList(double[] numbers, Type requestType);  }### Answer:
@Test public void returns_byte_list() { Object object = this.builder.getList(new double[] {1.0}, Byte.class).get(0); assertTrue(object instanceof Byte); assertEquals((byte) 1, object); }
@Test public void returns_short_list() { Object object = this.builder.getList(new double[] {1.0}, Short.class).get(0); assertTrue(object instanceof Short); assertEquals((short) 1, object); }
@Test public void returns_int_list() { Object object = this.builder.getList(new double[] {1.0}, Integer.class).get(0); assertTrue(object instanceof Integer); assertEquals(1, object); }
@Test public void returns_long_list() { Object object = this.builder.getList(new double[] {1.0}, Long.class).get(0); assertTrue(object instanceof Long); assertEquals((long) 1, object); }
@Test public void returns_float_list() { Object object = this.builder.getList(new double[] {1.0}, Float.class).get(0); assertTrue(object instanceof Float); assertEquals((float) 1, object); }
@Test public void returns_double_list() { Object object = this.builder.getList(new double[] {1.0}, Double.class).get(0); assertTrue(object instanceof Double); assertEquals((double) 1, object); }
@Test public void returns_big_int_list() { Object object = this.builder.getList(new double[] {1.0}, BigInteger.class).get(0); assertTrue(object instanceof BigInteger); assertEquals(BigInteger.valueOf(1), object); }
@Test public void returns_big_decimal_list() { Object object = this.builder.getList(new double[] {1.0}, BigDecimal.class).get(0); assertTrue(object instanceof BigDecimal); assertEquals(BigDecimal.valueOf(1.0), object); }