+
+{
+ my $template = URI::Template->new( 'http://ex.com/{test}' );
+ isa_ok( $template, 'URI::Template' );
+ my %input = ( test => 'test' );
+ my $uri = $template->process( test => 'test' );
+ is( $uri, 'http://ex.com/test' );
+ my %result = $template->deparse( $uri );
+ is_deeply( \%result, \%input, 'process => deparse w/ multiple chars' );
+}
+
+{
+ my $template = URI::Template->new( 'http://ex.com/profile/{username}/address' );
+ isa_ok( $template, 'URI::Template' );
+ my $uri = 'http://ex.com/profile/Test/addresses';
+ my %result = $template->deparse( $uri );
+ is_deeply( \%result, { username => undef }, 'regex properly terminated' );
+}