// Path: json-unit-json-path/src/main/java/net/javacrumbs/jsonunit/jsonpath/InternalJsonPathUtils.java
// static String fromBracketNotation(String path) {
//     return path
//         .replace("['", ".")
//         .replace("']", "");
// }


import org.junit.jupiter.api.Test;
import static net.javacrumbs.jsonunit.jsonpath.InternalJsonPathUtils.fromBracketNotation;
import static org.assertj.core.api.Assertions.assertThat;
package net.javacrumbs.jsonunit.jsonpath;




class InternalJsonPathUtilsTest {

    @Test
    void shouldConvertFromBracketNotation() {
// Path: json-unit-json-path/src/main/java/net/javacrumbs/jsonunit/jsonpath/InternalJsonPathUtils.java
// static String fromBracketNotation(String path) {
//     return path
//         .replace("['", ".")
//         .replace("']", "");
// }


// Path: json-unit-json-path/src/test/java/net/javacrumbs/jsonunit/jsonpath/InternalJsonPathUtilsTest.java
import org.junit.jupiter.api.Test;
import static net.javacrumbs.jsonunit.jsonpath.InternalJsonPathUtils.fromBracketNotation;
import static org.assertj.core.api.Assertions.assertThat;

package net.javacrumbs.jsonunit.jsonpath;




class InternalJsonPathUtilsTest {

    @Test
    void shouldConvertFromBracketNotation() {
        assertThat(fromBracketNotation("$['tool']['jsonpath'][2]")).isEqualTo("$.tool.jsonpath[2]");