### Question:
Selectors { public static long longAt(JsonNode node, JsonPointer pointer) { node = dereference(node, pointer); if (!node.isLong() && !node.isInt()) { throw new WrongTypeException(pointer, "not a long"); } return node.asLong(); }  static String textAt(JsonNode node, JsonPointer pointer); static Optional<String> optionalTextAt(JsonNode node, JsonPointer pointer); static int integerAt(JsonNode node, JsonPointer pointer); static long longAt(JsonNode node, JsonPointer pointer); static OptionalInt optionalIntegerAt(JsonNode node, JsonPointer pointer); static Iterable<? extends JsonNode> listAt(JsonNode node, JsonPointer pointer); static List<String> textListAt(JsonNode node, JsonPointer pointer); static Map<String, String> propertiesAt(JsonNode node, JsonPointer pointer); static Map<String, Long> longPropertiesAt(JsonNode node, JsonPointer pointer);  }### Answer:
@Test public void longAt() { ObjectNode node = newObject(); node.put("foo", 100_000L); long value = Selectors.longAt(node, FOO_FIELD); assertThat(value, is(100_000L)); }