@Test
public void getFloatArray() throws JSONException {

    JSONArray jsonArray = new JSONArray("[7, 90, 78, 45, 858, 86, 958]");
    Float[] result = layerUtil.getFloatArray(jsonArray);
    Assert.assertEquals(7, result.length);
    Assert.assertEquals(7f, result[0]);
    Assert.assertEquals(90f, result[1]);
    Assert.assertEquals(958f, result[6]);
}