test_class.file: outland-feature-server/src/test/java/outland/feature/server/features/FeatureSupportTest.java
test_class.identifier: FeatureSupportTest
test_case.body: @Test
    public void testToFeature() throws Exception {
  
      Feature feature = Feature.newBuilder()
          .setId("id1")
          .setKey("key1")
          .setGroup("app1")
          .setDescription("desc1")
          .setStatus(Status.off)
          .build();
  
      final String json = JsonFormat.printer().print(feature);
  
      final Feature feature1 = FeatureSupport.toFeature(json);
  
      assertEquals(feature.getId(), feature1.getId());
      assertEquals(feature.getKey(), feature1.getKey());
      assertEquals(feature.getGroup(), feature1.getGroup());
      assertEquals(feature.getDescription(), feature1.getDescription());
      assertEquals(feature.getStatus(), feature1.getStatus());
  
    }
test_case.class_method_signature: FeatureSupportTest.testToFeature()
test_case.full_signature: @Test public void testToFeature()
test_case.identifier: testToFeature
test_case.invocations: build setStatus setDescription setGroup setKey setId newBuilder print printer toFeature assertEquals getId getId assertEquals getKey getKey assertEquals getGroup getGroup assertEquals getDescription getDescription assertEquals getStatus getStatus
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testToFeature()
focal_class.file: outland-feature-server/src/main/java/outland/feature/server/features/FeatureSupport.java
focal_class.identifier: FeatureSupport
focal_class.class_method_signature: FeatureSupport.toFeature(String json)
focal_class.full_signature: public static Feature toFeature(String json)
focal_class.identifier: toFeature
focal_class.modifiers: public static
focal_class.parameters: (String json)
focal_class.return: Feature
focal_class.signature: Feature toFeature(String json)
focal_method.body: public static Feature toFeature(String json) {
  
      try {
        Feature.Builder builder = Feature.newBuilder();
        JsonFormat.parser().ignoringUnknownFields().merge(json, builder);
        return builder.build();
      } catch (InvalidProtocolBufferException e) {
        throw new RuntimeException(e);
      }
    }
focal_method.class_method_signature: FeatureSupport.toFeature(String json)
focal_method.full_signature: public static Feature toFeature(String json)
focal_method.identifier: toFeature
focal_method.invocations: newBuilder merge ignoringUnknownFields parser build
focal_method.modifiers: public static
focal_method.parameters: (String json)
focal_method.return: Feature
focal_method.signature: Feature toFeature(String json)