TransactionToken implements Serializable { public boolean valid() { if (tokenKey == null || tokenKey.isEmpty()) { return false; } if (tokenValue == null || tokenValue.isEmpty()) { return false; } if (tokenName == null || tokenName.isEmpty()) { return false; } return true; } TransactionToken(final String tokenString);  TransactionToken(final String tokenName, final String tokenKey,
            final String tokenValue); String getTokenName(); String getTokenKey(); String getTokenValue(); boolean valid(); String getTokenString();  }
@Test public void testValid01() { TransactionToken token = new TransactionToken("aaa", "123", "456"); boolean valid = token.valid(); assertThat(valid, is(true)); }
@Test public void testValid02() { TransactionToken token = new TransactionToken("aaa", "123", ""); boolean valid = token.valid(); assertThat(valid, is(false)); }
@Test public void testValid03() { TransactionToken token = new TransactionToken("aaa", "123", null); boolean valid = token.valid(); assertThat(valid, is(false)); }
@Test public void testValid04() { TransactionToken token = new TransactionToken("aaa", "", "456"); boolean valid = token.valid(); assertThat(valid, is(false)); }
@Test public void testValid05() { TransactionToken token = new TransactionToken("aaa", null, "456"); boolean valid = token.valid(); assertThat(valid, is(false)); }
@Test public void testValid06() { TransactionToken token = new TransactionToken("", "123", "456"); boolean valid = token.valid(); assertThat(valid, is(false)); }
@Test public void testValid07() { TransactionToken token = new TransactionToken(null, "123", "456"); boolean valid = token.valid(); assertThat(valid, is(false)); }
@Test public void testValid08() { TransactionToken token = new TransactionToken(null, null, null); boolean valid = token.valid(); assertThat(valid, is(false)); }