src/test/java/com/jcabi/github/RtReferenceTest.java
/**
     * RtReference should be able to return its ref.
     * @throws Exception - If something goes wrong.
     */
RtReference should be able to return its ref.
@throws Exception - If something goes wrong.
RtReference should be able to return its ref . @throws Exception - If something goes wrong .
@Test
    public void returnsRef() throws Exception {
        final MkContainer container = new MkGrizzlyContainer().next(
            new MkAnswer.Simple(
                HttpURLConnection.HTTP_OK,
                "{\"ref\":\"refs/heads/featureC\"}"
            )
        ).start();
        final Reference reference = new RtReference(
            new ApacheRequest(container.home()), repo(), "refs/heads/featureC"
        );
        try {
            MatcherAssert.assertThat(
                reference.ref(),
                Matchers.is("refs/heads/featureC")
            );
        } finally {
            container.stop();
        }
    }
@ Test public void returnsRef ( ) throws Exception { final MkContainer container = new MkGrizzlyContainer ( ) . next ( new MkAnswer . Simple ( HttpURLConnection . HTTP_OK , "{\"ref\":\"refs/heads/featureC\"}" ) ) . start ( ) ; final Reference reference = new RtReference ( new ApacheRequest ( container . home ( ) ) , repo ( ) , "refs/heads/featureC" ) ; try { MatcherAssert . assertThat ( reference . ref ( ) , Matchers . is ( "refs/heads/featureC" ) ) ; } finally { container . stop ( ) ; } }
RtReference should be able to return its ref.
RtReference should be able to return its ref .