src/test/java/com/jcabi/github/mock/MkDeployKeysTest.java
/**
     * MkDeployKeys can be represented in JSON format.
     * Reproduces bug described in issue #346.
     * @throws Exception If some problem inside.
     */
MkDeployKeys can be represented in JSON format.
Reproduces bug described in issue #346.
@throws Exception If some problem inside.
MkDeployKeys can be represented in JSON format . Reproduces bug described in issue #346 . @throws Exception If some problem inside .
@Test
    public void canRepresentAsJson() throws Exception {
        final DeployKeys keys = MkDeployKeysTest.repo().keys();
        final DeployKey first = keys.create("Title4", "Key4");
        MatcherAssert.assertThat(
            first.json().toString(),
            Matchers.allOf(
                Matchers.containsString("\"title\":\"Title4\""),
                Matchers.containsString("\"key\":\"Key4\"")
            )
        );
    }
@ Test public void canRepresentAsJson ( ) throws Exception { final DeployKeys keys = MkDeployKeysTest . repo ( ) . keys ( ) ; final DeployKey first = keys . create ( "Title4" , "Key4" ) ; MatcherAssert . assertThat ( first . json ( ) . toString ( ) , Matchers . allOf ( Matchers . containsString ( "\"title\":\"Title4\"" ) , Matchers . containsString ( "\"key\":\"Key4\"" ) ) ) ; }
MkDeployKeys can be represented in JSON format.
MkDeployKeys can be represented in JSON format .