### Question:
WebHookPayloadJsonVelocityTemplate extends WebHookPayloadJsonTemplate implements WebHookPayload, WebHookContentObjectSerialiser { @Override public String getFormatShortName() { return FORMAT_SHORT_NAME; } WebHookPayloadJsonVelocityTemplate(WebHookPayloadManager manager, WebHookVariableResolverManager variableResolverManager); @Override String getFormatShortName(); @Override String getFormatDescription(); @Override String getFormatToolTipText(); @Override PayloadTemplateEngineType getTemplateEngineType(); static final String FORMAT_SHORT_NAME; }### Answer:
@Test public void testRegister() { SBuildServer mockServer = mock(SBuildServer.class); when(mockServer.getRootUrl()).thenReturn("http: WebHookPayloadManager wpm = new WebHookPayloadManager(mockServer); WebHookPayloadJsonVelocityTemplate whp = new WebHookPayloadJsonVelocityTemplate(wpm, variableResolverManager); whp.register(); assertEquals(whp, wpm.getFormat(whp.getFormatShortName())); }
@Test public void testGetFormatShortName() { assertEquals("jsonVelocityTemplate", whp.getFormatShortName()); }