@Override
    public String toJson(Object obj) {
        return getGson().toJson(obj);
    }
@Test
    void testSupported() {
        Assertions.assertTrue(new GsonImpl().isSupport());

        gsonInit.set(g -> Mockito.when(g.toJson((Object) Mockito.any())).thenThrow(new RuntimeException()));
        Assertions.assertFalse(new GsonImpl().isSupport());
        gsonInit.set(null);

        gsonInit.set(g -> Mockito.when(g.fromJson(Mockito.anyString(), (Type) Mockito.any()))
                .thenThrow(new RuntimeException()));
        Assertions.assertFalse(new GsonImpl().isSupport());
        gsonInit.set(null);

        gsonInit.set(g -> Mockito.when(g.toJson((Object) Mockito.any())).thenReturn(null));
        Assertions.assertFalse(new GsonImpl().isSupport());
        gsonInit.set(null);

        gsonInit.set(g -> Mockito.when(g.fromJson(Mockito.anyString(), (Type) Mockito.any()))
                .thenReturn(null));
        Assertions.assertFalse(new GsonImpl().isSupport());
        gsonInit.set(null);

        gsonInit.set(g -> Mockito.when(g.fromJson(Mockito.eq("[\"json\"]"), (Type) Mockito.any()))
                .thenReturn(null));
        Assertions.assertFalse(new GsonImpl().isSupport());
        gsonInit.set(null);
    }