### Question:
TeamEventsEndpoint implements UnprotectedRootAction { public static Event deserializeEvent(final String input) throws IOException { final Event serviceHookEvent = EndpointHelper.MAPPER.readValue(input, Event.class); final String eventType = serviceHookEvent.getEventType(); if (StringUtils.isEmpty(eventType)) { throw new IllegalArgumentException("Payload did not contain 'eventType'."); } final Object resource = serviceHookEvent.getResource(); if (resource == null) { throw new IllegalArgumentException("Payload did not contain 'resource'."); } return serviceHookEvent; }  @Override String getIconFileName(); @Override String getDisplayName(); @Override String getUrlName(); HttpResponse doIndex(final HttpServletRequest request); static Event deserializeEvent(final String input); @RequirePOST void doPing(
            final StaplerRequest request,
            final StaplerResponse response,
            @StringBodyParameter @Nonnull final String body); @RequirePOST void doGitPullRequestMerged(
            final StaplerRequest request,
            final StaplerResponse response,
            @StringBodyParameter @Nonnull final String body); @RequirePOST void doGitPush(
            final StaplerRequest request,
            final StaplerResponse response,
            @StringBodyParameter @Nonnull final String body); @RequirePOST void doConnect(
            final StaplerRequest request,
            final StaplerResponse response,
            @StringBodyParameter @Nonnull final String body); @RequirePOST void doRmwebhook(
            final StaplerRequest request,
            final StaplerResponse response,
            @StringBodyParameter @Nonnull final String body); static T findTrigger(final Job<?, ?> job, final Class<T> tClass); static List<T> findTriggers(final Job<?, ?> job, final Class<T> tClass); static final String URL_NAME; }### Answer:
@Test public void deserializeEvent_sample() throws Exception { final Event actual = TeamEventsEndpoint.deserializeEvent(GIT_PUSH_SAMPLE_JSON); Assert.assertEquals("git.push", actual.getEventType()); final Map<String, ResourceContainer> containers = actual.getResourceContainers(); final ResourceContainer collection = containers.get("collection"); Assert.assertEquals("https: }