001 package com.mockrunner.mock.web; 002 003 import java.security.Principal; 004 005 /** 006 * Mock implementation of <code>Principal</code>. 007 */ 008 public class MockUserPrincipal implements Principal 009 { 010 private String mName; 011 012 public MockUserPrincipal(String name) 013 { 014 mName = name; 015 } 016 017 public String getName() 018 { 019 return mName; 020 } 021 }