@Test(groups = {"unit"})

public void deserialize() {
    String json = "{" +
            "  'path': '\\/*'," +
            "  'indexes': [" +
            "    {" +
            "      'kind': 'Range'," +
            "      'dataType': 'String'," +
            "      'precision': -1" +
            "    }," +
            "    {" +
            "      'kind': 'Range'," +
            "      'dataType': 'Number'," +
            "      'precision': -1" +
            "    }" +
            "  ]" +
            "}";
    IncludedPath path = new IncludedPath(json);
    Collection<Index> indexes = path.getIndexes();
    assertThat(indexes).hasSize(2);
    assertThat(indexes).usingFieldByFieldElementComparator().contains(Index.Range(DataType.String, -1));
    assertThat(indexes).usingFieldByFieldElementComparator().contains(Index.Range(DataType.Number, -1));
}