assertEquals(expected, getOutput());
}
@Test
public void writeUnsupportedGrantType() throws Exception {
OAuth2Exception oauthException = new UnsupportedGrantTypeException(DETAILS);
String expected = createResponse(oauthException.getOAuth2ErrorCode());
converter.write(oauthException, contentType, outputMessage);
assertEquals(expected, getOutput());
}